Skip to content
Advertisement

PyQt4 QWizard: How to disable the back button on a single page?

I would like to disable the “Back” button on a QWizard page.

My Class inherits from QWizard and from a generated file. It looks somehow like this:

from PyQt4 import QtGui

JavaScript

Here http://doc.qt.digia.com/3.3/qwizard.html#backButton I found the method setBackEnabled().

With self.setBackEnabled(page1, False) I am not able to call this method. It says:

JavaScript

Am I doing something wrong?

Or is this method not available in Python?

Advertisement

Answer

An example that seems to work:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement