Popup command mit argumenten
Verfasst: Donnerstag 28. Februar 2008, 16:10
Ich habe ein popup menu erzeugt. Klappt wunderbar. Ich würde allerdings gerne dem popup command ein Argument übergeben, wie mache ich das?
Bisher mache ich das so:
klappt toll, nur will ich gerne
machen. Leider wird hier "command" allerdings das Resultat aus listDir("MeinTollesDir") zugewiesen, nicht eine Funktionsreferenz.
Geht das? Unter perl wars recht simpel.
Bisher mache ich das so:
Code: Alles auswählen
popup.add_command(label = "List", command = listDir )
Code: Alles auswählen
popup.add_command(label = "List", command = listDir("MeinTollesDir") )
Geht das? Unter perl wars recht simpel.