[Linux-programlama] Pyqt derleyemiyorum

---------

[Linux-programlama] Pyqt derleyemiyorum

From: mirat can bayrak <mcbayrak_at_anadolu.edu.tr>
Date: Sun, 16 Dec 2007 20:59:59 +0200
Message-Id: <200712162059.59794.mcbayrak@anadolu.edu.tr>

Merhabalar bir süredir python kullanıyorum ama ui olayına çok yabancıyım küçük
bir deneme yaptım. ui dosyası burada

<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>Form1</class>
<widget class="QDialog">
    <property name="name">
        <cstring>Form1</cstring>
    </property>
    <property name="geometry">
        <rect>
            <x>0</x>
            <y>0</y>
            <width>360</width>
            <height>250</height>
        </rect>
    </property>
    <property name="caption">
        <string>Form1</string>
    </property>
    <widget class="QLineEdit">
        <property name="name">
            <cstring>lineEdit1</cstring>
        </property>
        <property name="geometry">
            <rect>
                <x>10</x>
                <y>130</y>
                <width>341</width>
                <height>111</height>
            </rect>
        </property>
    </widget>
    <widget class="QPushButton">
        <property name="name">
            <cstring>Button1</cstring>
        </property>
        <property name="geometry">
            <rect>
                <x>10</x>
                <y>80</y>
                <width>80</width>
                <height>41</height>
            </rect>
        </property>
        <property name="text">
            <string>Kaldııır!!!!</string>
        </property>
    </widget>
    <widget class="QPushButton">
        <property name="name">
            <cstring>Button2</cstring>
        </property>
        <property name="geometry">
            <rect>
                <x>100</x>
                <y>80</y>
                <width>130</width>
                <height>41</height>
            </rect>
        </property>
        <property name="text">
            <string>Haydi Bastr..</string>
        </property>
    </widget>
    <widget class="QLabel">
        <property name="name">
            <cstring>textLabel1</cstring>
        </property>
        <property name="geometry">
            <rect>
                <x>20</x>
                <y>10</y>
                <width>330</width>
                <height>61</height>
            </rect>
        </property>
        <property name="font">
            <font>
                <pointsize>24</pointsize>
            </font>
        </property>
        <property name="text">
            <string>Turist Ömer ver0.1</string>
        </property>
    </widget>
    <widget class="QPushButton">
        <property name="name">
            <cstring>Button3</cstring>
        </property>
        <property name="geometry">
            <rect>
                <x>240</x>
                <y>80</y>
                <width>111</width>
                <height>41</height>
            </rect>
        </property>
        <property name="text">
            <string>Gapa</string>
        </property>
    </widget>
</widget>
<connections>
    <connection>
        <sender>Button3</sender>
        <signal>clicked()</signal>
        <receiver>Form1</receiver>
        <slot>close()</slot>
    </connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
</UI>

Hata mesajı ise..

horselogy_at_pardus ~ $ pyuic4 form1.ui -o omer.py -d
DEBUG:root:UI version is 3.3
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/pyuic.py", line 65, in ?
    error = generateUi(args[1], options.output, options.execute,
options.indent)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/pyuic.py", line 28, in
genera teUi
    uic.compileUi(uifname, pyfile, execute, indent)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/__init__.py", line 56, in
com pileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/Compiler/compiler.py", line
7 1, in compileUi
    w = self.parse(input_stream)
  File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 565, in
pa rse
    assert version in ("4.0",)
AssertionError

yardımcı olabilecek?

-- 
Mirat Can Bayrak
horselogy_at_gmail.com
_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Sun 16 Dec 2007 - 20:21:27 EET

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.