On 01/04/13 01:51, David Cortesi wrote:
Like instantiating any class in Python: call the class name as a
function, passing initialization values..

self.setHorizontalHeaderItem( col_num, QTableWidgetItem( "Yabba Dabba") )


Thanks David, it all looks pretty straight forward except for the error message;

"global name 'QTableWidgetItem' is not defined"

If this was C++ I'd be looking for an include file. Is there something similar that I should be including, another module perhaps?

--
Regards,
Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to