Re: [Qgis-developer] Qgis standalone apps

2010-09-15 Thread Noli Sicad
Try this. Noli ~ def main(argv): app = QApplication(argv) QgsApplication.setPrefixPath(/usr/local/qgis1.6.0.app/Contents/MacOS/, True) QgsApplication.initQgis() wnd = MyWnd() wnd.move(100,100) wnd.show() retval = app.exec_()

Re: [Qgis-developer] Qgis standalone apps

2010-09-15 Thread Giuseppe Sucameli
oops... sys.argv :) On Wed, Sep 15, 2010 at 2:58 PM, Massimo Di Stefano massimodisa...@yahoo.it wrote: Hi Giuseppe, i tried with the args variable, i have : MacBook-Pro-15-di-sasha:~ sasha$ python /qgistry.py Traceback (most recent call last): File /qgistry.py, line 66, in module

[Qgis-developer] Re: cmake error on OS X 10.6

2010-09-15 Thread Matthew Denno
Okay - so I seemed to fix this error by adding the following to cmake: -D GSL_CONFIG_PREFER_PATH:STRING=/Library/Frameworks/GSL.framework/Versions/1/unix/bin Now I receive the following error during make: [ 67%] Generating analysis/sipanalysispart0.cpp, analysis/sipanalysispart1.cpp,

[Qgis-developer] Python dynamic forms

2010-09-15 Thread Jeremy Palmer
Hi All! I'm trying to use custom forms for adding and editing features within a layers. The forms that I'm creating need to query a PostgreSQL database to populate controls. Using the UI init function seems like the thing to do here. I've managed to populate the controls by setting up a new