[PyQt] QUndoCommand.undo() not getting called upon push()

Adeodato Simó dato at net.com.org.es
Thu Oct 15 02:24:12 BST 2009


I define a couple QUndoCommand classes based on a mixin, where the undo
command of one is the redo of the other, and vice-versa. See the attached

Unfortunately this has stopped working with PyQt 4.6. Executing the
attached file prints "inserting foo", "removing bar" with PyQt <= 4.5,
but does nothing with 4.6.

Is this breakage expected? Is my usage not supported? Many thanks in

- Are you sure we're good?
- Always.
        -- Rory and Lorelai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qundo.py
Type: text/x-python
Size: 844 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091015/3cbb06c3/qundo.py

More information about the PyQt mailing list