Python help using tkinter
This is my first attempt at a python app and can't find the answers i need so thought i would post here for some help.
This app will be a replacement for my Unitab prices excel sheet, so far i can import the venues and a bit of info for the day, i have tried a few different methods and the closes i can get is it prints the first venue info and stops, yet if you run this in your ide it prints all the info as i would like it. The print statement doesn't need to be there. Code:
|
Success......always the way, try to solve a problem for a couple days as soon as i post the issue i figure it out.
Code:
|
I have progressed a bit further but having issues with the formatting, if you run this you will notice the results are going in a downward pattern rather than lining up under the headings.
Code:
|
try .strip()
on the entries |
my early morning guess does not work
to make debug easier, change background colours just do a think like MNA_COLOR = "Red" LOC_COLOR = "Blue" and use that in places like your race info then, when you are all filled with joy, change them to what you really want it is a long time since i used tkinter i will see if i can find a better answer for you |
label.grid( row=0,column=0,sticky=w)
|
I will try your background solution, it might let me see what's going on, as for adding the row this seems to stop the loop as it always prints on row 0
|
I solved this by creating a frame and spanning the column, i then just packed everything in from the left then just looped over and did it again.
Setting the colours definitely made a difference as i could see what was happening, now just to set them all back. Code:
|
#sorry for my rushed reply.
#above the for Venue in venues: rowo = 0 for Venue in Venues: #add row=rowo to your .grid( lines #then at the bottom of that loop under Wcondition_label.grid( column=4,sticky=W,row=rowo) rowo += 1 #that will increment the row number #you need row=rowo or whatever you choose to call it alongside the column=n |
I will also try this as it may be useful moving forward with this project.
|
All times are GMT +10. The time now is 01:17 PM. |
Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.