[PyQt] Bad importing of KDE classes in pykdeuic4

Adeodato Simó dato at net.com.org.es
Thu Apr 10 21:44:55 BST 2008


Hello.

In http://bugs.debian.org/475403 a user reported that KDE classes are
not imported correctly in pykde4 output:

| Using pykdeuic4 to convert UI files generated by Qt Designer to Python
| classes results in wrong mappings for many KDE4 widgets.

| While standard classes are imported correctly...
| > from PyKDE4 import kdecore
| > from PyKDE4 import kdeui
| > from PyQt4 import QtCore, QtGui
| ....special widgets are imported at the end of the document giving a non-
| existent package:
| > from kcombobox import KComboBox

See the two attached files for an example.

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
Excuse me for thinking a banana-eating contest was about eating a banana!
                -- Paris Geller
-------------- next part --------------
<ui version="4.0" >
 <class>Dialog</class>
 <widget class="QDialog" name="Dialog" >
  <property name="geometry" >
   <rect>
    <x>0</x>
    <y>0</y>
    <width>400</width>
    <height>300</height>
   </rect>
  </property>
  <property name="windowTitle" >
   <string>Dialog</string>
  </property>
  <layout class="QVBoxLayout" >
   <item>
    <widget class="KComboBox" name="kcombobox" />
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>KComboBox</class>
   <extends>QComboBox</extends>
   <header>kcombobox.h</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcombobox.py
Type: text/x-python
Size: 897 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080410/123119d6/kcombobox.py


More information about the PyQt mailing list