[Tkinter] [Very Basic Example Only] Hello World - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: Tutorials (https://python-forum.io/forum-4.html) +---- Forum: GUI tutorials (https://python-forum.io/forum-34.html) +---- Thread: [Tkinter] [Very Basic Example Only] Hello World (/thread-66.html) |
[Very Basic Example Only] Hello World - Yoriz - Sep-17-2016 try: # For Python 2.x import Tkinter as tk except ImportError: # For Python 3.x import tkinter as tk app_win = tk.Tk() app_win.title('Hello World') app_frame = tk.Frame(app_win) app_win.mainloop() RE: [Tkinter Example] Hello World very basic - nilamo - Oct-05-2016 I don't understand the app_ prefix. This has (almost) nothing to do with this post... it's used everywhere. Obviously it's your app, why would you need to remind yourself of that. Wouldn't it make more sense, and be easier to read, if the variables were simply "win" and "frame"? RE: [Tkinter Example] Hello World very basic - Yoriz - Oct-08-2016 They are just variable names you can name then however you like :) , this is just code by wuf copied from the old forum |