The following code can be executed from IDLE (a Python IDE) in 32-bit Python 3.6 on Windows 7 (64 bits)
import tkinter
def algo():
pass
def ventanan1():
Ventana1=tkinter.Toplevel()
Ventana1.geometry("250x100")
Ventana1.title("Ventana 1")
BotonQueEjecuta1 = tkinter.Button(Ventana1, text="Ejecutar", command=ventanan2)
BotonQueEjecuta1.place(x=0,y=0)
def ventanan2():
Ventana2=tkinter.Toplevel()
Ventana2.geometry("250x100")
Ventana2.title("Ventana 2")
BotonQueEjecuta2 = tkinter.Button(Ventana2, text="Ejecutar", command=ventanan3)
BotonQueEjecuta2.place(x=0,y=0)
def ventanan3():
Ventana3=tkinter.Toplevel()
Ventana3.geometry("250x100")
Ventana3.title("Ventana 3")
BotonQueEjecuta3 = tkinter.Button(Ventana3, text="Ejecutar", command=algo)
BotonQueEjecuta3.place(x=0,y=0)
root = tkinter.Tk()
root.title("Ventana 0")
root.geometry("800x800")
BotonQueEjecuta = tkinter.Button(root, text="Ejecutar", command=ventanan1)
BotonQueEjecuta.place(x=0,y=0)
root.mainloop
The problem is when using it from the interpreter in the style of "python miscript.py" it just does not do anything, it does not throw any errors or anything, it does not show anything
How can I do it from outside IDLE? only there it works