Python Forum
[Tkinter] Meaning
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Meaning
#2
Okay if you need help with Python come to a free online classroom and get continuous interactive help

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 directly
Reply


Messages In This Thread
Meaning - by Jpen10 - Dec-23-2019, 03:43 PM
RE: Meaning - by Denni - Dec-23-2019, 04:14 PM
RE: Meaning - by Jpen10 - Dec-23-2019, 08:05 PM

Forum Jump:

User Panel Messages

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