+ 1

Can we build a GUI entirely with Python?

28th Sep 2016, 7:23 PM
Julio Muñoz
Julio Muñoz - avatar
4 Respostas
+ 1
For beginners is the Tkinter module recommended. I think it must be part of the Standard Library. But you can't use it within this app! Just on your computer.
28th Sep 2016, 7:28 PM
Amarie
+ 1
thanks @Giovanni Gatto, just missed the module name on the declarations: tkinter.Tk() tkinter.Label(...)
29th Sep 2016, 6:35 PM
Julio Muñoz
Julio Muñoz - avatar
0
import tkinter as tk root = tk.Tk () label = tk.Label(root,text="Hello World") label.pack () root.mainloop ()
29th Sep 2016, 6:21 PM
Giovanni Gatto
Giovanni Gatto - avatar
0
from tkinter import *
30th Sep 2016, 2:06 AM
Giovanni Gatto
Giovanni Gatto - avatar