Code: Alles auswählen
def __init__(self):
dlgMain = Tk()
self.label = Label(dlgMain, text = 'RED Workflow')
self.label.pack()
####
l1 = 'Ablageort der XML Datei: '
l2 = 'Anderer Text: '
###
label1 = Label(dlgMain, text = l1, justify = LEFT)
label2 = Label(dlgMain, text = l2, justify = LEFT)
label1.pack()
label2.pack()
###
self.entryPath = Entry(dlgMain, width = 30)
self.entryAux = Entry(dlgMain, width = 30)
self.entryPath.pack()
self.entryAux.pack()
###
self.buttonPfad = Button(dlgMain, text = 'XML File', command = self.PfadClick())
self.buttonOK = Button(dlgMain, text = 'OK', command = self.OkClick())
self.buttonCancel = Button(dlgMain, text = 'Abbrechen', command = self.CancelClick())
self.buttonPfad.pack()
self.buttonOK.pack()
self.buttonCancel.pack()
###
dlgMain.mainloop()
def self.PfadClick()
# usf
- keines der Buttons wird dargestellt
- Es wird sofort "self.PfadClick()" ausgeführt, nur ohne dass da jemand den Button gedrueckt hat (wie auch, wenn er nicht dargestellt wird)
Was habe ich hier falsch gemacht?