Skip to content

Instantly share code, notes, and snippets.

View blabla-lab's full-sized avatar
😐
I may be slow to respond.

blabla-lab

😐
I may be slow to respond.
View GitHub Profile
@RamonWill
RamonWill / TkinterTemplate.py
Last active May 8, 2024 00:37
Tkinter GUI template
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
"""
Useful Links:
https://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter Most useful in my opinion
https://www.tutorialspoint.com/python/python_gui_programming.htm
https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html
import tkinter
# Lots of tutorials have from tkinter import *, but that is pretty much always a bad idea
from tkinter import ttk
import abc
class Menubar(ttk.Frame):
"""Builds a menu bar for the top of the main window"""
def __init__(self, parent, *args, **kwargs):
''' Constructor'''
ttk.Frame.__init__(self, parent, *args, **kwargs)