Hey all,<br><br>Here is the code:<br><br>import sys<br>from Qt import *<br><br>a = QApplication([])<br><br># Our function to call when the button is clicked<br>def sayHello():<br> print "Hello, World!"<br><br>
# Instantiate the button<br>hellobutton = QPushButton("Say 'Hello world!'",None)<br><br># And connect the action "sayHello" to the event "button has been clicked"<br>a.connect(hellobutton, SIGNAL("clicked()"), sayHello)
<br><br># The rest is known already...<br>a.set_main_widget(hellobutton)<br>hellobutton.show()<br>a.exec_loop()<br><br><br>I get the following message: AttributeError: set_main_widget<br><br>When I comment out that line, I get the same message about exec_loop. What's up?
<br><br>Thanks,<br><br>Doug Woos<br>