Last active
August 12, 2025 16:37
-
-
Save bru32/899ae08d54e64dc453ebdf4bc4de4467 to your computer and use it in GitHub Desktop.
tkinter template with an App class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import tkinter as tk | |
| from tkinter import ttk | |
| class App(tk.Tk): | |
| def __init__(self): | |
| super().__init__() | |
| self.geometry("600x400+500+10") | |
| self.title("App") | |
| self.style = ttk.Style() | |
| self.style.theme_use("clam") | |
| if __name__ == "__main__": | |
| app = App() | |
| app.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment