Python Forum
[Tkinter] .get() doesn't exist?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] .get() doesn't exist?
#7
(Oct-13-2019, 10:11 PM)joe_momma Wrote: my observation of your code is you don't need the while loop-
tkinter is using the mainloop to cycle events everything in your
loop could be put in a function and updated with correct guess.
an easy way of getting random colors is:
>>> from random import choice
>>> list_colors= ['red','green','blue']
>>> choice(list_colors)
'red'
>>> choice(list_colors)
'green'
>>> 
in your function add global points
points = 0 #counts points
 
def submit():
    global points
    Pinput = Box.get()
    ,,,,,,,,
have seen guizero? it's a module based on tkinter great for starting and
basic interfaces guizero found here
the reason i'm suggesting it is because all your labels could be textvariables and in
guizero would make them by default.

Thanks! I will also look into guizero, GUI (Tkinter) is just a side project to keep me interested in python (becuase I am still in school and I want to focus on getting good grades in computer science)
Reply


Messages In This Thread
.get() doesn't exist? - by GalaxyCoyote - Oct-13-2019, 02:32 PM
RE: .get() doesn't exist? - by Axel_Erfurt - Oct-13-2019, 03:52 PM
RE: .get() doesn't exist? - by GalaxyCoyote - Oct-13-2019, 05:03 PM
RE: .get() doesn't exist? - by Axel_Erfurt - Oct-13-2019, 05:14 PM
RE: .get() doesn't exist? - by GalaxyCoyote - Oct-13-2019, 05:30 PM
RE: .get() doesn't exist? - by joe_momma - Oct-13-2019, 10:11 PM
RE: .get() doesn't exist? - by GalaxyCoyote - Oct-14-2019, 03:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] _tkinter.TclError: image "pyimage2" doesn't exist Killdoz 1 10,512 May-30-2020, 09:48 AM
Last Post: menator01

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020