Python Gui
import tkinter as tk
#Importing the main module
window = tk.Tk()
window.mainloop()
Outstanding Ox
import tkinter as tk
#Importing the main module
window = tk.Tk()
window.mainloop()
# main library is tkinter so lets go
import tkinter as tk
root = tk.Tk()
#root.geometry("widthxheight+spcefromleft+spacefromright") lets set h and w
root.geometry("500x200+0+0")
# loop your window
root.mainloop()
from tkinter import *
root = Tk()
myLabel = Label(root, text = "Any text")
myLabel.pack()
root.mainloop()
import pygame
pygame.init()
W, H = 900, 500
WIN = pygame.display.set_mode((W, H))
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.quit()
from tkinter import *
class Root(Tk):
def __init__(self):
super(Root,self).__init__()
self.title("Python Tkinter")
self.minsize(500,400)
root = Root()
root.mainloop()
python easygui.py