[PyKDE] QTableComboBox problem
Phil Thompson
phil at river-bank.demon.co.uk
Sat Dec 1 14:39:43 GMT 2001
Carter Sanders wrote:
>
> Hi-
>
> When I try to use QTableComboBox, I consistently get an argument mismatch error:
>
> TypeError: Argument 1 of QTableComboBox has an invalid type
>
> My code looks like this:
>
> sourceTypes=["huey","dooey","louis"]
> cb=qttable.QTableComboBox(self,self.myTable,sourcetypes)
>
> Can anybody tell me why this is happening and how I can get an exact description of qttable.__init__().
> I can find what the C++ wants, but how can I display the exact parameter list constraints for the qttable python constructor?
>
> Thanks-
> Carter
Do you mean QComboTableItem?
Python want the same as what C++ wants - a QTable as the 1st parameter,
a QStringList as the second parameter (not a Python list of strings),
and an optional boolean 3rd parameter.
Phil
More information about the PyQt
mailing list