[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyQt and lambda expressions doesn't like each other
From:       Hans-Peter Jansen <hpj () urpla ! net>
Date:       2003-04-28 12:31:50
[Download RAW message or body]

This doesn't work (while it should):

import sys
from qt import *

app = QApplication(sys.argv)
button = QPushButton("&Hello World", None)
app.setMainWidget(button)
button.show()
app.connect(button, SIGNAL("clicked()"), lambda: app.exit(0))
app.exec_loop()

Any ideas, why?

Pete

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic