Untitled
unknown
plain_text
2 years ago
711 B
6
Indexable
import tkinter as tk def window_close(): window.destroy() #----------FINESTRA E ATTRIBUTI--------------# State = "Starting..." window = tk.Tk() window.title("Test Program") window.resizable(False, False) window.configure(background="black") window.geometry("350x100+1560+0") window.attributes('-topmost',True) #----------LABEL E BOTTONI--------------# welcome_label = tk.Label(window,text=State,font=("Helvetica", 15),bg="black",fg="white") welcome_label.grid(row=0, column=0, sticky="N", padx=20, pady=10) button1 = tk.Button(text="Close", command=window_close) button1.grid(row=2, column=0, sticky="WE", pady=10, padx=10) if __name__ == "__main__": window.mainloop()
Editor is loading...