Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creation 2eme 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: #creation #fenetre #tkinter
ADD COMMENT
Topic
Name
1+8 =