Louis Tran
0
Q:

python gui builder

### Answer to: "" ###

###
#  You can find thirteen gui libraries for python here:
#  https://medium.com/issuehunt/13-python-gui-libraries-a6196dfb694
#
#  Personally, I like "Kivy".
###
3
from tkinter import *

def changel():
    if l['text']!='Stop it!':
        l['text']='Stop it!'
    else:
        l['text']='Are you over?'

w = Tk()
l = Label(w,text = 'GUI Interface')
b = Button(w,text = 'A normal button',command = changel )
t = w.title('A normal window')
l.pack()
b.pack()
w.mainloop()
2
import tkinter as tk
#Importing the main module
window = tk.Tk()
window.mainloop()
1
from tkinter import *
root = Tk()
root.mainloop()
#Tkinter is the GUI module for Python.
3

New to Communities?

Join the community