Dec-23-2019, 03:43 PM
Dec-23-2019, 04:14 PM
Okay if you need help with Python come to a free online classroom and get continuous interactive help
As for your particular issue
so instead of
as for
As for your particular issue
import tkinter as tk
this simply says import the tkinter library and as an internal reference we will be using tk
instead of tkinter
so instead of
tkinter.TK()
where we use the library name to reference one of its methods we use the shorthand version of tk.TK()
as for
root = tk.TK()
you are assigning to root
the value return from the call to tk.TK()
method if you do not now what the Tkinter TK() method returns you would want to consult the Tkinter library documentation as that has nothing to do with python directlyDec-23-2019, 08:05 PM
Thanks for the info. I've come to the conclusion that since I'm using Pydroid3 on my android tablet, much of the code I try doesn't execute correctly. I have Anaconda/Spyder on my windows 10 and have very few errors. I'll try the classroom.