SyncTk/classes/frames/saves.py

25 lines
698 B
Python
Raw Normal View History

2023-01-22 18:53:55 +02:00
from tkinter import EW, NS, ttk
from ttkthemes import ThemedTk
from classes.custom.themed_frame import ThemedFrame
class FrameSaves(ThemedFrame):
def __init__(self, master: ThemedTk, **kwargs) -> None:
super().__init__(master, **kwargs)
master.title("Saves - Stardew Sync")
self["borderwidth"] = 2
self["relief"] = "solid"
self.inside_frame = ThemedFrame(self)
for btn in range(0, 10):
ttk.Button(self.inside_frame, text="SAVES "+str(btn)).grid(column=0, row=btn, padx=9, pady=9, sticky=EW)
self.scrollbar = ttk.Scrollbar(self.inside_frame, orient="vertical")
self.scrollbar.grid(column=1, row=0, sticky=NS)