Hey guys, I have a couple of python programs with GUI that work as should, now I have created another program that loads the other programs and runs them, think of it as a selector.
All programs are in the same folder.
The issue is that when I press the button and start one of the programs, when the called program loads I get the error:
All programs are in the same folder.
The issue is that when I press the button and start one of the programs, when the called program loads I get the error:
Error:return self.tk.getint(self.tk.call(
_tkinter.TclError: bad window path name ".!button"This is the code for the caller program.root=tk.Tk()
root.title('Program Selection')
canvas1=tk.Canvas(root,width =300, height=150)
canvas1.pack()
def prog():
import prog1_v1
return
def prog2():
import prog2_v1
return
labelTop=tk.Label(canvas1,text='Choose a program')
canvas1.create_window(150,40,window=labelTop)
button1=tk.Button(text='program1',command = prog)
canvas1.create_window(150,75,window=button1)
button2=tk.Button(text='program2',command=prog2)
canvas1.create_window(150,110,window=button2)
