[Tkinter-discuss] Text undo/redo stack

Mark Summerfield list at qtrac.plus.com
Mon Jun 25 18:09:46 CEST 2012


Hi,

I can enable/disable an undo button for a Text widget depending on
Text.edit_modified(); i.e., if it is modified then I can safely call
undo.

But what I'd really like to do is just check the undo *and redo* stacks
to see whether they are empty and enable/disable based on that.

Is this possible?

Thanks!

-- 
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
    C++, Python, Qt, PyQt - training and consultancy
        "Rapid GUI Programming with Python and Qt" - ISBN 0132354187
            http://www.qtrac.eu/pyqtbook.html


More information about the Tkinter-discuss mailing list