On 28.10.2010 10:21, ext Algis Kabaila wrote:

  I did read it and it looks nice, but the very first example of hello
World  (I show the listing of it, obtained via clipboard from the
wiki/Signals_and_Slots_in_PySide)  did not work, at least for me.

Listing of Hello World, first example:
***************************************
import sys
from PySide import QtCore, QtGui

# define a function that will be used as a slot
def sayHello():
     print 'Hello world!'

app = QtGui.QApplication(sys.argv)

button = QtGui.QPushButton('Say hello!')

# connect the clicked signal to the sayHello slot
button.clicked.connect(sayHello)
button.show()

sys.exit(app.exec_())
***************************************

Hi,

I'm a bit baffled - this works just fine for me, as for all the other examples on the page. Could you elaborate on what you tried to do and how it failed?

The only thing I could see potentially causing trouble is the lack of the shebang lines in the examples. I added them in the examples.

Cheers,

ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to