Re: [PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Christoph Burgmer
Am Freitag, 20. März 2009 schrieb Giovanni Bajo:
> On 3/19/2009 2:58 PM, Damien Elmes wrote:
> > The article has a number of mistakes in it. The author could have
> > installed a mac python package and xcode and saved themselves a lot of
> > trouble getting pyqt working. They also assert that plugins are not
> > distributable when Qt in fact provides an API call to modify the
> > plugin path, allowing you to bundle the plugins and point Qt to them.
> > On that false assertion they go on to conclude that PyQt is unsuitable
> > for Mac development. It works perfectly fine in my app.
>
> And BTW why not use PyInstaller so that you have one single deploy
> instruction for all platforms? And, besides, it also handles PyQt
> plugins automagically (include them into the distribution and setup the
> Qt plugin paths accordingly).

He was looking for Mac also, but from the PyInstaller website I take:
> Mac port in development

Christoph

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] trap ESC in mapper editing

2009-03-19 Thread Mario Daniel Carugno
I'm isolating my problem with mapper.
When i setup a mapper, the ESC key reverts changes in the edited widgets.
That's ok, but i need to trap that situation. I need to do more than
revert changes
when i press ESC.
For instance, before going into editing mode i disable some buttons.
When i press ESC, i'm not in editing mode anymore, so i need to enable
that buttons back.
How i detect the moment when i press ESC in a mapper form ?

Thanks
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] SIP: Where is the generated python wrapper code?

2009-03-19 Thread Brian Kelley
You are too used to SWIG.  SIP doesn't generate "python wrapper code", it just 
generates C++ code that turns into a dynamically linked library that you load.

For example:

swig:
QtWidgets.py
_QtWidgets.so

SIP:
QtWidgets.so

Brian

On 3/19/09 6:13 PM, "Magnus Benjes"  wrote:

Hello,
I have used SWIG for several years. Now I want to change to SIP. But I did not 
manage to run even the simplest example from the reference guide. When I tried 
the "Word" example there was a lot of C++ Code created, but no Python wrapper 
code.

Where is the generated Python wrapper code?

I am using Pythonxy on Windows XP.

Regards,
Magnus Benjes

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] SIP: Where is the generated python wrapper code?

2009-03-19 Thread Phil Thompson
On Thu, 19 Mar 2009 23:13:14 +0100, "Magnus Benjes"
 wrote:
> Hello, 
> I have used SWIG for several years. Now I want to change to SIP. But I
did
> not manage to run even the simplest example from the reference guide.
When
> I tried the "Word" example there was a lot of C++ Code created, but no
> Python wrapper code. 
> 
> Where is the generated Python wrapper code?

If you mean wrapper code written in Python - there isn't any, it's all done
in C++.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] SIP: Where is the generated python wrapper code?

2009-03-19 Thread Magnus Benjes
Hello, 
I have used SWIG for several years. Now I want to change to SIP. But I did not 
manage to run even the simplest example from the reference guide. When I tried 
the "Word" example there was a lot of C++ Code created, but no Python wrapper 
code. 

Where is the generated Python wrapper code?

I am using Pythonxy on Windows XP.

Regards,
Magnus Benjes___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] press ESC while editing mapper

2009-03-19 Thread Mario Daniel Carugno
Hi there
I'm doing a dialog with a sql data form and it's OK/Cancel buttons.
The data is managed with model/mapper

I connect the button's cancel.clicked() signal to a method that
reverts changes, quits editing mode,
and do more things like enabling some widgets back. Call that method 'rollback'.

When i'm editing and press the ESC key, the editing finishes and
changes are reverted.
Thats OK, but when i press ESC, i want the same functionality of the
'rollback' method, not just
revert and quit edit mode.

So, while i'm editing, i need to connect the ESC key to the 'rollback'
method. And disconnect it
after done.

Is this possible ? How can i get it ?
Thanks
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Red Flag Midinux port

2009-03-19 Thread Frédéric
On jeudi 19 mars 2009, Phil Thompson wrote:

> The first question is whether it runs Qt or not.
>
> There is nothing special about the Nokia - it's just a X11 based Linux
> box and there is little specific porting to do.

Looks like MID arch. is very close to maemo:

http://www.linuxdevices.com/news/NS8166710404.html

I found some links on a french forum where some guys installed Gimp, gqview 
and so...

-- 
Frédéric

http://www.gbiloba.org

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Giovanni Bajo

On 3/19/2009 2:58 PM, Damien Elmes wrote:

The article has a number of mistakes in it. The author could have
installed a mac python package and xcode and saved themselves a lot of
trouble getting pyqt working. They also assert that plugins are not
distributable when Qt in fact provides an API call to modify the
plugin path, allowing you to bundle the plugins and point Qt to them.
On that false assertion they go on to conclude that PyQt is unsuitable
for Mac development. It works perfectly fine in my app.


And BTW why not use PyInstaller so that you have one single deploy 
instruction for all platforms? And, besides, it also handles PyQt 
plugins automagically (include them into the distribution and setup the 
Qt plugin paths accordingly).

--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Damien Elmes
The article has a number of mistakes in it. The author could have
installed a mac python package and xcode and saved themselves a lot of
trouble getting pyqt working. They also assert that plugins are not
distributable when Qt in fact provides an API call to modify the
plugin path, allowing you to bundle the plugins and point Qt to them.
On that false assertion they go on to conclude that PyQt is unsuitable
for Mac development. It works perfectly fine in my app.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] QTableView header connection

2009-03-19 Thread Gert-Jan

Thanks all, for the replies.


Bugzilla from m...@qtrac.eu wrote:
> 
> or if you just want to know the column that was clicked
> 
>   QtCore.SIGNAL("sectionClicked(int)")

Yes, this was exactly what I was looking for, and it's working! Thanks a
bunch!

Cheers,

Gert-Jan
-- 
View this message in context: 
http://www.nabble.com/QTableView-header-connection-tp22579905p22598813.html
Sent from the PyQt mailing list archive at Nabble.com.

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Henning Schröder
Hi,
I just found the following article:
http://arstechnica.com/open-source/guides/2009/03/how-to-deploying-pyqt-applications-on-windows-and-mac-os-x.ars
Maybe some people find it interesting...

Greets
Henning
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Red Flag Midinux port

2009-03-19 Thread Phil Thompson
On Thu, 19 Mar 2009 08:01:45 +0100, Frédéric
 wrote:
> Hi there,
> 
> As you may know, I'm developping Papywizard, a motorized panohead control

> software, to take panoramic pictures. For now, the main target is Nokia 
> maemo (N8x0) devices, because they run PyQt, and are very nice to use on 
> the field.
> 
> But more and more people are asking support for the new MID devices, like

> [1], which are running Red Flag Midinux distro. The question is: is there

> a port of PyQt for this plateform? Or is it planned?
> 
> Thanks,
> 
>
[1]http://benq.com/products/MobileInternetDevice/?product=1402&page=specifications

The first question is whether it runs Qt or not.

There is nothing special about the Nokia - it's just a X11 based Linux box
and there is little specific porting to do.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] postgresql

2009-03-19 Thread Erik Janssens
Indeed the model/view/delegate framework is very flexible and remains
snappy, even when displaying POPO's.  The advantage of using an orm is that
you can display properties of your objects, along with attributes.

sqlalchemy / elixir is a very flexible framework that makes using complex
queries easier (not easy).

you could use the Camelot framework to avoid writing boilerplate code to
map you python objects to tables.  some screenshots are available at :
http://www.conceptive.be/projects/camelot/wiki/ScreenShots

2009/3/19 Damien Elmes 

> >> So an alternative would be to reimplement the Qsql classes using
> >> based on the Python DBAPI protocol, but maybe the cost/benefit ratio
> >> for that is too high?
> > I'd say far to high. Qt has it own philosophy with databases, if you want
> > snappy grids, and automatic updates and all that stuff, i'd suggest to
> stick
> > to PyQt4 cplusplus-ish way of dealing with data. It's not pythoninc but
> it
> > works quite well. I must admit ORM's are much more nice to work with, but
> SQL
> > is not so bad.
>
> You don't need to use Qt's SQL support for snappy grids and automatic
> updates. Qt's model/view architecture is quite flexible and I achieve
> very good performance with sqlalchemy (bypassing the ORM) and a custom
> table model. It wasn't hard to write, either - but it is more work
> than using Qt's premade SQL model.
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Red Flag Midinux port

2009-03-19 Thread Frédéric
Hi there,

As you may know, I'm developping Papywizard, a motorized panohead control 
software, to take panoramic pictures. For now, the main target is Nokia 
maemo (N8x0) devices, because they run PyQt, and are very nice to use on 
the field.

But more and more people are asking support for the new MID devices, like 
[1], which are running Red Flag Midinux distro. The question is: is there 
a port of PyQt for this plateform? Or is it planned?

Thanks,

[1]http://benq.com/products/MobileInternetDevice/?product=1402&page=specifications
-- 
Frédéric

http://www.gbiloba.org

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt