How Can i use a variable from file to another file using Python
i am working on a simple GUI interface using tkinter that takes the name and the display a welcome message when you click a button , but i need to split the GUI code to a file and the function of say_hello to another file , i do not want the code in one file **main.py** from tkinter import Tk , Label , Button , Entry , END from welcome import say_hello window = Tk() window.title("Welcome User") window.geometry("400x300") askName = Label(window , text="Enter Your own name : ") askName.pack(pady=20) nameEntry = Entry(window , width=24) nameEntry.pack(pady=10) btn = Button(window , text="Say Hell
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.