This commit is contained in:
2025-09-11 18:59:22 +02:00
parent 67a2055fc3
commit c52b2953d2
5 changed files with 49 additions and 9 deletions

View File

@@ -1,8 +1,16 @@
# Module header
import sys
if __name__ == "__main__":
sys.exit("This module is not intended to be executed as the main program.")
# Imports
import tkinter as tk
from tkinter import ttk
from src.core.image_handler import load_icon
def main():
# Functions
def main() -> None:
root = tk.Tk()
root.title("Ukázka rozložení")
root.geometry("800x600")
@@ -37,7 +45,7 @@ def main():
states = {}
# Funkce pro přepnutí checkboxu
def toggle(event):
def toggle(event) -> None:
region = tree.identify("region", event.x, event.y)
if region == "tree":
item_id = tree.identify_row(event.y)
@@ -99,7 +107,4 @@ def main():
tree.bind("<Button-3>", tree_right_click)
listbox.bind("<Button-3>", list_right_click)
root.mainloop()
if __name__ == "__main__":
main()
root.mainloop()