[PyKDE] PyKDE compiling error

Jim Bublitz jbublitz at nwinternet.com
Wed Apr 9 00:18:01 BST 2003


On 08-Apr-03 Marc Lavallée wrote:
> Le mar 08/04/2003 à 06:59, Ricardo Javier Cardenes Medina a écrit
>:
>> PyQt build excludes QCommonStyle if there's no QWindowsStyle nor
>> QMotifStyle (because these are the only classes from Qt that
>> inherits
>> directly from QCommonStyle). You need to edit
>> sip/qcommonstyle.sip on
>> PyQt and remove:
>> 
>>  %If (Qt_STYLE_WINDOWS || Qt_STYLE_MOTIF)
>> 
>> and one of the %End you'll find at the end of the file. Rebuild
>> PyQt.
>> You don't need to rebuild PyKDE. Phil is aware of this.
> 
> Ok, now it works! :-)
> 
> But then, here's another error:
> 
> [marc at marc examples2]$ python uisampler.py
> Traceback (most recent call last):
>   File "uisampler.py", line 9, in ?
>     from uiwidgets import *
>   File "uiwidgets.py", line 7, in ?
>     from kdeui import KEdit, KComboBox, KColorCombo,
> KEditListBox,
> KListBox, KLineEdit, KRestrictedLine,\
> ImportError: cannot import name KDirectionButton
> 
> Is it "normal"? 
> Besides, the examples in the "examples3" folder are working,

Yes - there is no KDirectionButton in KDE 3 or it moved into kdefx
as some of the other kdeui stuff did in KDE 3. examples2/ programs
should run under KDE 2, examples3/ under KDE3.

Jim




More information about the PyQt mailing list