ich habe unten eine Oberfläche erstellt, auf der Oberfläche sind zuerst 4 Buttons, wenn man z.B auf "Modelldefinition" drauf klicken, soll dann zweite Reihe mit wieder fünf Buttons auftauchen. Ich schaffe irgendwie diese Verknüpfung nicht.
kann jmd mir mit paar code helfen.
Danke
Code: Alles auswählen
import sys
from Tkinter import *
#Main Option
layout=Tk()
#Main Option
mainop=Label(layout, text="Main Option", font="Arial 20 bold", height=1, width=10, anchor="w")
mainop.place(relx=0,rely=0,anchor="nw")
modelldef=Button(layout, text="Modell-Definition",font="Arial 20 bold")
modelldef.place(relx=0.02, rely=0.1, anchor="w")
Fahrmanoever=Button(layout, text=" Fahrmanöver ",font="Arial 20 bold")
Fahrmanoever.place(relx=0.27, rely=0.1, anchor="w")
JobControl=Button(layout, text=" Job-Control ",font="Arial 20 bold")
JobControl.place(relx=0.52, rely=0.1, anchor="w")
Auswertung=Button(layout, text=" Auswertung ",font="Arial 20 bold")
Auswertung.place(relx=0.77, rely=0.1, anchor="w")
layout.mainloop()
Code: Alles auswählen
import sys
from Tkinter import *
#Option f¨¹r Modell-Definition
modelldef=Tk()
Allgemeines=Button(modelldef, text=" Allgemeines ",font="Arial 20 bold")
Allgemeines.place(relx=0.01, rely=0.2, anchor="w")
Substrukturauswahl=Button(modelldef, text="Substruktur-\n"+"auswahl",font="Arial 20 bold")
Substrukturauswahl.place(relx=0.22, rely=0.2, anchor="w")
NormF=Button(modelldef, text=" NormF ",font="Arial 20 bold")
NormF.place(relx=0.45, rely=0.2, anchor="w")
Substrukturauswahl1=Button(modelldef, text="Substruktur-\n"+"auswahl",font="Arial 20 bold")
Substrukturauswahl1.place(relx=0.6, rely=0.2, anchor="w")
Testrechnung=Button(modelldef, text=" Testrechnung ",font="Arial 20 bold")
Testrechnung.place(relx=0.8, rely=0.2, anchor="w")
modelldef.mainloop()