|
|
To advertise on these forums, e-mail us. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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:
__________________
One Drive "If the corporates are treating you poorly , just go elsewhere." "If they need you , they will soon find out." "If you need them , you will soon find out." --moeee _______________________________________________ |
#2
|
|||
|
|||
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:
__________________
One Drive "If the corporates are treating you poorly , just go elsewhere." "If they need you , they will soon find out." "If you need them , you will soon find out." --moeee _______________________________________________ |
#3
|
|||
|
|||
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:
__________________
One Drive "If the corporates are treating you poorly , just go elsewhere." "If they need you , they will soon find out." "If you need them , you will soon find out." --moeee _______________________________________________ |
#4
|
|||
|
|||
try .strip()
on the entries |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
label.grid( row=0,column=0,sticky=w)
|
#7
|
|||
|
|||
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
__________________
One Drive "If the corporates are treating you poorly , just go elsewhere." "If they need you , they will soon find out." "If you need them , you will soon find out." --moeee _______________________________________________ |
#8
|
|||
|
|||
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:
__________________
One Drive "If the corporates are treating you poorly , just go elsewhere." "If they need you , they will soon find out." "If you need them , you will soon find out." --moeee _______________________________________________ |
#9
|
|||
|
|||
#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 |
#10
|
|||
|
|||
I will also try this as it may be useful moving forward with this project.
__________________
One Drive "If the corporates are treating you poorly , just go elsewhere." "If they need you , they will soon find out." "If you need them , you will soon find out." --moeee _______________________________________________ |
Thread Tools | Search this Thread |
Display Modes | |
|
|