Re: [PyQt] MAC Intel and PowerPC

2007-05-23 Thread Adam Tenderholt
If you use the 'file' command on your python interpreter, qt libraries, and PyQt libraries, you might find out if something isn't a Universal Binary: file `which python2.4` file /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PyQt4/QtGui.so etc. There should be som

[PyQt] QSqlQuery.addBindValue malfunction

2007-05-23 Thread Fabiano Sidler
Hi folks! I've written a database application which works very well, unless I use query.prepare and _.addBindValue. As it seems to me, addBindValue does not properly substitute the placeholders,but leave the query string untouched. Can anyone reproduce this behaviour? I'm running PyQt4 with Qt 4.

RE: [PyQt] MAC Intel and PowerPC

2007-05-23 Thread Jason Hihn
If you can keep your application as one stub .py file, and the rest in a .pyc, you can accomplish the same thing. The pyc is byte code and platform independent. Also, I recommend putting them in a zip file as t hey are highly compressible, and you can in your stub, modify the import search path to

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread David J Brooks
On Wednesday 23 May 2007 02:57:45 pm Henrik Pauli wrote: > On 2007. May 23., Hans-Peter Jansen wrote: > > Am Mittwoch, 23. Mai 2007 16:26 schrieb Phil Thompson: > > > On Wednesday 23 May 2007 3:18 pm, David J Brooks wrote: > > > > On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote: > > > > >

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread Henrik Pauli
On 2007. May 23., Hans-Peter Jansen wrote: > Am Mittwoch, 23. Mai 2007 16:26 schrieb Phil Thompson: > > On Wednesday 23 May 2007 3:18 pm, David J Brooks wrote: > > > On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote: > > > > On Wednesday 23 May 2007 2:20 am, David J Brooks wrote: > > > > > c

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread Hans-Peter Jansen
Am Mittwoch, 23. Mai 2007 16:26 schrieb Phil Thompson: > On Wednesday 23 May 2007 3:18 pm, David J Brooks wrote: > > On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote: > > > On Wednesday 23 May 2007 2:20 am, David J Brooks wrote: > > > > I'm sure I must be overlooking something obvious, but

Re: [PyQt] Old SIP bug reemerging?

2007-05-23 Thread Phil Thompson
On Wednesday 23 May 2007 1:47 pm, Mikael Schönenberg wrote: > Way back in late 2004 Fredrik, a colleague of mine, reported a > problem[1] that eventually turned out to be a bug[2] in SIP 4.1.1, > which we were using at the time. Phil, as always, resolved the issue > more or less immediately after t

RE: [PyQt] MAC Intel and PowerPC

2007-05-23 Thread Anita Diliberto
I have tried to create a universal binary, but that hasn't seemed to work when I bring over the .app file to the power pc. -Original Message- From: Doyon, Jean-Francois [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 3:17 PM To: Anita Diliberto; pyqt@riverbankcomputing.com Subject:

RE: [PyQt] MAC Intel and PowerPC

2007-05-23 Thread Doyon, Jean-Francois
You would need to build a universal binary, or build for the Power PC and use Rosetta. I was curious, so I looked for Python-specific solutions. Looks like this should help you: http://wiki.python.org/moin/MacPython/UniversalLibrariesAndExtensions J.F. -Original Message- From: [EMAIL P

Re: [PyQt] Singelton from QObject

2007-05-23 Thread Nahuel Defossé
El Wednesday 23 May 2007 08:09:15 Paul Giannaros escribió: > On Wednesday 23 May 2007 05:53:58 Nahuel Defossé wrote: > > I saw in ActiveState page the folowing code to make a singleton: > > class Borg: > > __shared_state = {} > > def __init__(self): > > self.__dict__ = self.__shared

[PyQt] MAC Intel and PowerPC

2007-05-23 Thread Anita Diliberto
I have a created a PyQt application using Qt4.1.1 and PyQt4 and Python2.4 on a MAC Intel. I am using py2app to create an executable. I can run the executable on the Mac Intel, but I can't seem to run it on the MAC PowerPC. Any suggestions on how I would do this? Thanks _

Re: [PyQt] PyQt apps deployment under Windows

2007-05-23 Thread Miguel Lobo
... or you can use PyInstaller to achieve the same effect without recompiling anything. I tried py2exe, cx_freeze and a number of similar applications but as far as I can see they all require the libraries to be in different files, which are either a) installed as separate files, requiring uni

Re: [PyQt] Child Windows not showing.

2007-05-23 Thread Lawrence Shafer
Oops, I forgot to give you the link to the code. Here it is. http://lawrence.orbwireless.net/iac_src.tar.gz Thanks. On Wednesday 23 May 2007 10:55:45 am Lawrence Shafer wrote: > Hello. I'm sorta a newb at both QT and Python. I have a program that has a > mainwindow and it needs to launch a sec

[PyQt] Child Windows not showing.

2007-05-23 Thread Lawrence Shafer
Hello. I'm sorta a newb at both QT and Python. I have a program that has a mainwindow and it needs to launch a second window to configure some settings. Could you please look at the code and tell my what I'm doing wrong? Thanks! --Lawrence ___ PyQt

Re: [PyQt] PyQt apps deployment under Windows

2007-05-23 Thread Giovanni Bajo
On 5/21/2007 9:25 PM, Miguel Lobo wrote: I faced the same question some time ago for my PyQt application and decided that the distribution form that allows easiest deployment under Windows is a single file (the executable) with no installation. The way I do that is basically creating my execu

Re: [PyQt] Exception handling hook

2007-05-23 Thread Arve Knudsen
On 5/23/07, Sundance <[EMAIL PROTECTED]> wrote: Arve Knudsen wrote: > If an exception is raised in the last Python > layer, it is swallowed by the excepthook and a nice message box pops > up, BUT once control returns to the first Python layer Hi again, In my opinion, the exception hook should

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread Phil Thompson
On Wednesday 23 May 2007 3:18 pm, David J Brooks wrote: > On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote: > > On Wednesday 23 May 2007 2:20 am, David J Brooks wrote: > > > I'm sure I must be overlooking something obvious, but I don't see it. > > > > > > Ive set up a main window for MDI an

[PyQt] Exception handling hook

2007-05-23 Thread Sundance
Arve Knudsen wrote: > If an exception is raised in the last Python > layer, it is swallowed by the excepthook and a nice message box pops > up, BUT once control returns to the first Python layer Hi again, In my opinion, the exception hook should never even return. That's what I meant when I sai

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread David J Brooks
On Wednesday 23 May 2007 02:22:41 am Phil Thompson wrote: > On Wednesday 23 May 2007 2:20 am, David J Brooks wrote: > > I'm sure I must be overlooking something obvious, but I don't see it. > > > > Ive set up a main window for MDI and added a Find dialog, with signals > > and slots to activate it.

Fwd: [PyQt] Exception handling hook

2007-05-23 Thread Arve Knudsen
-- Forwarded message -- From: Arve Knudsen <[EMAIL PROTECTED]> Date: May 23, 2007 3:29 PM Subject: Re: [PyQt] Exception handling hook To: Sundance <[EMAIL PROTECTED]> On 5/23/07, Sundance <[EMAIL PROTECTED]> wrote: Arve Knudsen wrote: > Is it possible to register a hook with QA

[PyQt] Exception handling hook

2007-05-23 Thread Sundance
Arve Knudsen wrote: > Is it possible to register a hook with QApplication in order to be > notified of an unhandled exception? Hi Arve, Exceptions live in the Python realm, so they have nothing to do with QApplication as far as I know. You can install an exception handler with sys.excepthook.

[PyQt] Old SIP bug reemerging?

2007-05-23 Thread Mikael Sch�nenberg
Way back in late 2004 Fredrik, a colleague of mine, reported a problem[1] that eventually turned out to be a bug[2] in SIP 4.1.1, which we were using at the time. Phil, as always, resolved the issue more or less immediately after the source of the error had been located. However, after recently up

[PyQt] Exception handling hook

2007-05-23 Thread Arve Knudsen
Is it possible to register a hook with QApplication in order to be notified of an unhandled exception? Currently, all that happens when an exception propagates to the event loop is that it gets printed in the console, which is not very helpful. How do others cope with unhandled exceptions in PyQt

Re: [PyQt] Singelton from QObject

2007-05-23 Thread Paul Giannaros
On Wednesday 23 May 2007 05:53:58 Nahuel Defossé wrote: > I saw in ActiveState page the folowing code to make a singleton: > class Borg: > __shared_state = {} > def __init__(self): > self.__dict__ = self.__shared_state > # and whatever else you want in your class -- that's all!

Re: [PyQt] stuck on non-modal dialog

2007-05-23 Thread Phil Thompson
On Wednesday 23 May 2007 2:20 am, David J Brooks wrote: > I'm sure I must be overlooking something obvious, but I don't see it. > > Ive set up a main window for MDI and added a Find dialog, with signals and > slots to activate it. The dialog pops up as expected, but is totally > unresponsive. Nothi