qt4 setFlags

Diez B. Roggisch deets at nospam.web.de
Thu Jun 14 20:04:40 CEST 2007


luca72 schrieb:
> Hello
> 
> I make this code:
> row = self.tableWidget.rowCount()
>         for a in range(row):
>             self.tableWidget.item(row, 0).setFlags(Qt.IsSelectable)
> 
> i have this erroror :
> 
> global name Qt is not definied

import Qt might help. And reading the python tutorial.

Diez



More information about the Python-list mailing list