File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111import tkinter as tk
1212
13- from typing import Final , Any
13+ from typing import Final
1414from pathlib import Path
1515
1616from .logger import logger , Status
@@ -38,37 +38,3 @@ def tcl_source(script_name: str, root: tk.Tk) -> None:
3838 sys .exit (1 )
3939
4040 root .tk .call ("source" , script_path )
41-
42-
43- def tcl_eval (tcl : str , root : tk .Tk ) -> Any :
44- """
45- Evaluate a Tcl statement
46-
47- Args:
48- tcl (str): string to evaluate
49- root (tk.Tk): Tk instance
50-
51- Returns:
52- Any: Result
53- """
54-
55- return root .tk .eval (tcl )
56-
57-
58- def tcl_call_procedure (procedure_name : str , * args : Any , root : tk .Tk ) -> Any :
59- """
60- Call a Tcl procedure with arguments and return result
61-
62- Example:
63- result = tcl_call_procedure("show_info", "Title", "Message", root=tk_root)
64-
65- Args:
66- procedure_name (str): procedure to call
67- *args (Any): Arguments passed to the Tcl procedure.
68- root (tk.Tk): Tk instance
69-
70- Returns:
71- Any: Result of procedure
72- """
73-
74- return root .tk .call (procedure_name , * args )
You can’t perform that action at this time.
0 commit comments