Jul-19-2020, 02:24 AM
Hello Python Users
I have a button(mybutton) in a file called startpage. If I click on this button I want it to run a function in a file called om. The function is called openingmenu.
I have a button(mybutton) in a file called startpage. If I click on this button I want it to run a function in a file called om. The function is called openingmenu.
mybutton = Button(root, text="Click me for opening menu", bg="white", fg="firebrick", \ relief = "groove", font = "Helvitica 60", command = from om import openingmenu) Mybutton.pack()So I tried to set command as command = from om import openingmenu, but I get an invalid syntax error. Can this be done?