hello ,

i am using PyQt4 : QtCore and QtGui .
i built a GUI with few tabs using QTabWidget(self.centralwidget)
and addTab(self.device)

device is a QtGui.QWidget()
device is one of my tabs...

i send text to this tab with
self.ui.name.setText(' ....') (name belongs to this tab)

how can i clear the tab?? i want a clean screen when i trigger it!

Recommended Answers

settext('') does not work?

Jump to Post

All 3 Replies

settext('') does not work?

i did not think about it... but i have many field which i print on the screen with many settext(....)!!!
i don't want each field to settext(") seperatly!! i need a function which clear the tab at once!


still not solved

commented: Please, do not bump. -3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.