1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
def ITA():
if lol.get() == "S":
def MOZO():
print("bonjour ",loucou.get()," Ca va ")
MZfenetre = Tk()
MZfenetre["bg"]="black"
MZfenetre.title("###____S____###")
champ_label= Label(MZfenetre, text =" IP of WebSite",bg="black")
champ_label.pack()
loucou = StringVar()
louc = Entry(MZfenetre, textvariable = loucou ,fg="green",bg="black")
louc.pack()
BMP = Button(MZfenetre, text = "Valider",command = MOZO)
BMP.pack()
Mafenetre = Tk()
Mafenetre.title("####----____MAIN____----####")
Mafenetre["bg"]= "black"
champ_label = Label(Mafenetre,text="Rechercher",bg="black",fg ="green")
champ_label.pack()
lol = StringVar()
loul = Entry(Mafenetre, textvariable=lol)
loul.pack()
champ_label = Label(Mafenetre)
champ_label.pack()
BZ =Button(Mafenetre, command =ITA)
BZ.pack() |
Partager