tkinter application code example
Example 1: basic tkinter gui
import tkinter as tk
root = tk.Tk()
root.title("my title")
root.geometry('200x150')
root.configure(background='black')
# enter widgets here
root.mainloop()
Example 2: tkinter simple application
#simple application with tkinter
from tkinter import *
window=Tk()
# add widgets here
window.title('Hello Python')
window.geometry("300x200+10+20")
window.mainloop()