[PyKDE] noob: QtabWidget
Tina Isaksen
tina at bestemselv.com
Tue Feb 21 19:16:49 GMT 2006
I'm still having some problems understanding the QT-assistant it seems.
I have a tab widget and need to check what tab is the active one, so I
have tried (among other things):
def doSaveMain(self):
if self.isTabEnabled(self.mainTabWidget * sources):
self.doSaveSources
"mainTabWidget" is of course my Qtab widget and "source" is the name of
the tab.
The tab widget section of the GUI file made by pyuic is:
self.mainTabWidget =
QTabWidget(self.centralWidget(),"mainTabWidget")
self.mainTabWidget.setGeometry(QRect(10,40,570,120))
self.sources = QWidget(self.mainTabWidget,"sources")
But this dosen't work so it would be really helpfull if someone could
show me how to do it right. Then I'll probably get a good clue on how to
understand the assistant too :)
Thanks
Tina
More information about the PyQt
mailing list