Enums (was: [PyKDE] debian's python-kde3 horribly broken)
Simon Edwards
simon at simonzone.com
Wed Apr 6 07:12:39 BST 2005
On Wednesday 06 April 2005 03:51, Sebastian Kügler wrote:
> Hi Thorsten, e.a.;
>
> On Tuesday 05 April 2005 19:37, Torsten Marek wrote:
> > just in case somebody didn't notice: Ricardo has uploaded PyKDE 3.11.3
> > built with sip 4.2.1 and patched work with KDE 3.3.2 to Debian/unstable.
>
> Thanks, installs fine, but ...
>
> Traceback (most recent call last):
> File "mountconfig.py", line 2610, in ?
> sysvapp = MountConfigApp()
> File "mountconfig.py", line 2314, in __init__
> self.mountlist.setSelectionMode(self.mountlist.Single)
> TypeError: argument 1 of QListView.setSelectionMode() has an invalid type
>
> Traceback (most recent call last):
> File "kgnuvd.py", line 153, in ?
> w = kgnuvd()
> File "kgnuvd.py", line 16, in __init__
> kgnuvd_ui.__init__(self,parent,__programname__,fl)
> File "/home/sebas/dev/kgnuvd/kgnuvd_ui.py", line 316, in __init__
>
self.frame13.setSizePolicy(QSizePolicy(3,0,0,0,self.frame13.sizePolicy().hasHeightForWidth()))
> TypeError: argument 1 of QSizePolicy() has an invalid type
It looks like it might be a case of the enum handling having been changed. I'm
not sure what the exact answer is, but try:
self.mountlist.setSelectionMode(int(self.mountlist.Single))
or
self.mountlist.setSelectionMode(KListView.Single)
or
self.mountlist.setSelectionMode(int(KListView.Single))
cheers,
--
Simon Edwards | Guarddog Firewall
simon at simonzone.com | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."
More information about the PyQt
mailing list