[PyQt] dynamically determine if in a macro?

danny shevitz at lanl.gov
Thu Oct 21 18:07:21 BST 2010


I am implementing undo/redo.Is there any way to dynamically determine if you
are currently in the middle of a macro? I have a block a code that sometimes
executes when in a macro and is otherwise ignored. I want to know if there is
a way to figure out at that moment, by querying the QUndoStack object whether
a macro is currently in progress?

thanks,
Danny



More information about the PyQt mailing list