WIP
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user