PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 348 - QState.addTransition not working with PyQt examples
: QState.addTransition not working with PyQt examples
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-09-07 11:13 EEST by Matti Airas
Modified: 2010-10-13 13:48 EEST (History)
8 users (show)

See Also:


Attachments
Failing example. (6.52 KB, text/x-python)
2010-09-07 11:13 EEST, Matti Airas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Airas 2010-09-07 11:13:20 EEST
Created attachment 84 [details]
Failing example.

When trying to port the PyQt animatedtiles.py example, I get this:

Traceback (most recent call last):
  File "./animatedtiles.py", line 197, in <module>
    trans = rootState.addTransition(ellipseButton.pressed, ellipseState)
TypeError: 'PySide.QtCore.QState.addTransition' called with wrong argument
types:
  PySide.QtCore.QState.addTransition(Signal, PySide.QtCore.QState)
Supported signatures:
  PySide.QtCore.QState.addTransition(PySide.QtCore.QAbstractState)
  PySide.QtCore.QState.addTransition(PySide.QtCore.QAbstractTransition)
  PySide.QtCore.QState.addTransition(PySide.QtCore.QObject, str,
PySide.QtCore.QAbstractState)


Code attached (copy the PyQt animatedtiles example directory and drop the
attached script there).
Comment 1 renato filho 2010-09-15 17:10:18 EEST
where I can find the animatedtiles example ?
Comment 2 Matti Airas 2010-09-16 05:20:50 EEST
matairas@bar:~/src/pyside/pyside-examples[phonon]$ find . -name animatedtiles\*
./examples/animation/animatedtiles
./examples/animation/animatedtiles/animatedtiles.qrc
./examples/animation/animatedtiles/animatedtiles_rc.pyc
./examples/animation/animatedtiles/animatedtiles_rc.py
./examples/animation/animatedtiles/animatedtiles.py

:-D
Comment 3 Marcelo Lira 2010-09-16 14:24:23 EEST
Fixed in commit PySide/c0611016
Comment 4 renato filho 2010-10-13 13:48:35 EEST
released on PySide 0.4.2