Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ouvrir une autre fenetre tkinter

from tkinter import *
 
def faireApparaitreLeToplevel():
    top=Toplevel(root)
    lab=Label(top, text="Ce soir je vais manger des frites")
    lab.pack()
 
root=Tk()
go=Button(root, text="lancer", command=faireApparaitreLeToplevel)
go.pack()
root.mainloop()
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #ouvrir #une #autre #fenetre #tkinter
ADD COMMENT
Topic
Name
3+1 =