I have GUI Tkinter code as aGUI.py :
import os from tkinter import * from tkinter import ttk root = Tk() root.title("APP") scripte = ttk.Button(root, text="Run") scripte.grid(row=3, column=2, columnspan=2, padx=20, pady=20) db = 6 #this varaible export to script called a.py def runApp(): print('app running') scripte.config(command=runApp) root.mainloop()-------------
script code as a.py
from aGUI import db number = db print(number)After Open App from aGUI.py and click in Run button to print db varaible from a.py , this button open app why?
![[Image: jgIdx.png]](https://i.stack.imgur.com/jgIdx.png)
--------------
After Run a.py the app from aGUI.py opened why?
![[Image: C1BW5.png]](https://i.stack.imgur.com/C1BW5.png)
Any suggested.