Develop simple Python GUI in Linux Desktop

Published: 02 December 2018
on channel: LinuxHowTo
24,317
246

simple gui with python


#Commands used:

sudo apt install python-tk
sudo apt install python3-tk


#gui.py file content:

#!/usr/bin/python3
#change Tkinter to tkinter
import tkinter as tk
win = tk.Tk()
win.title("Hello World")
#add label
mylabel=tk.Label(win,text="Hello World",font=("ubuntu",60,"bold"), fg = "red" )
mylabel.pack()
win.mainloop()


On this page of the site you can watch the video online Develop simple Python GUI in Linux Desktop with a duration of hours minute second in good quality, which was uploaded by the user LinuxHowTo 02 December 2018, share the link with friends and acquaintances, this video has already been watched 24,317 times on youtube and it was liked by 246 viewers. Enjoy your viewing!