[Qgis-user] python appliction example
Jachym Cepicky
jachym.cepicky at gmail.com
Sun Mar 29 06:45:17 PDT 2009
Hi,
I followed the guide in QGIS Book [1] (pages 161-167), "Creating PyQGIS
Applications" and I somehow did not get the desired result.
I get only one "empty" window, but no qgis-based application. Could
anyone point me to the bug, I probably did? Files attached.
I'm running it as follows:
Qgis (1.1.0), installed from debian package (custom compilation) in the
system the standard way.
export QGISHOME=/usr/
export PYTHONPATH=/usr/share/qgis/python/
python demo_app.py
Thanks
Jachym
[1]
http://download.osgeo.org/qgis/doc/manual/qgis-1.0.0_user_guide_en.pdf
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/JachymCepicky.pgp
Key fingerprint: 0C6D 0EAE 76BD 506C F299 ED8A C8AB 74B8 08D4 E08F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mainwindow_ui.py
Type: text/x-python
Size: 1589 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20090329/bf631c76/attachment.py>
-------------- next part --------------
<ui version="4.0" >
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget" >
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<widget class="QFrame" name="frame" >
<property name="frameShape" >
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Raised</enum>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>26</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar" />
</widget>
<resources/>
<connections/>
</ui>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo_app.py
Type: text/x-python
Size: 4171 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20090329/bf631c76/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20090329/bf631c76/attachment.sig>
More information about the Qgis-user
mailing list