semvec/pypi-packages huggingface dataset:
tkinterAsync 1.0.0
Run Tkinter module with own code at the same time
License: Apache-2.0

# TkinterAsync

Run [Tkinter Tcl/Tk](https://docs.python.org/3/library/tkinter.html) Python module with own loop code at the same time.

For more info [Github - https://github.com/ZhengLinLei/tkinterAsync](https://github.com/ZhengLinLei/tkinterAsync)
Issues [Github - Issues](https://github.com/ZhengLinLei/tkinterAsync/issues)


### Example code:

```Python

import sys
import os.path
sys.path.append(
    os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))


from src.tkinterAsync import Tkinter

# TKINTER GUI
def gui(root, tk, ttk):
    root.title('Title example')
    root.geometry('300x300')

    root.resizable(0, 0)

    button = tk.Button(root, text = 'Alert', padx = 25, cursor = 'hand2', command = lambda : print('Hello World!'))
    button.place(relx=0.5, rely=0.5, anchor=tk.CENTER)




# CREATE VARIABLE
root = Tkinter(gui) # PASS THE FUNCTION OR METHOD CLASS




# AFTER RUNNING TKINTER, THE PYTHON MUST RUN THE CODE BELOW AT THE SAME TIME

print('Running this after Tkinter')

for i in range(1000):
    print(i)


```


Zheng Lin Lei [Github](https://github.com/ZhengLinLei) - 2021