Re: [PyQt] GUI thread check

2009-01-17 Thread Frédéric
On samedi 17 janvier 2009, David Boddie wrote: threading.currentThread().getName() The main thread is called 'MainThread'. It may be called that now, but is it always guaranteed to have that name? True. The solution is to named it before launching the Qt main loop:

[PyQt] Icon in status bar

2009-01-17 Thread Frédéric
I would like to add some state icons, in the status bar, but adding a QIcon does not work: argument 1 of QStatusBar.addPermanentWidget() has an invalid type How can I do that? What widget should I use? -- Frédéric http://www.gbiloba.org

Re: [PyQt] Icon in status bar

2009-01-17 Thread Frédéric
On samedi 17 janvier 2009, Ingmar Steen wrote: Sorry, don't have a reply-to-all on my blackberry, so it's going to you and not the list. I replied on the list, so other people can see you answer. Try a QLabel with a pixmap (I think the method to call is setPixmap). That's the defacto

[PyQt] Re: Re: Re: Deploying from Linux to Windows

2009-01-17 Thread Thorsten Kampe
* Doug Hackworth (Fri, 16 Jan 2009 14:44:57 -0600) ...Regarding that, doesn't import try to find .py files? Yes, but not exclusively (also pyc, pyo, pyd, and __init__. There is no Lib/site-packages/PyQt4.py , so is that a problem? The path Lib/site-packages/PyQt4 that got installed is a

[PyQt] Preferred method to package PyQt-powered apps into .exes

2009-01-17 Thread eliben
Hello, I'll want to package my applications into .exe files, on Windows. Which of the existing options in the Python exe-packaging world works best for PyQt? PyInstaller? Py2exe? Something else? I'm concerned with reliability of packaging (wanting to distribute to PCs that have nothing

[PyQt] Re: Preferred method to package PyQt-powered apps into .exes

2009-01-17 Thread Thorsten Kampe
* eliben (Sat, 17 Jan 2009 06:55:58 -0800 (PST)) I'll want to package my applications into .exe files, on Windows. Which of the existing options in the Python exe-packaging world works best for PyQt? PyInstaller? Py2exe? Something else? You can try them all but probably Pyinstaller (grab the

Re: [PyQt] Catching key events

2009-01-17 Thread Frédéric
I forgot to ask: once I have checked all the key events, in keyPressedEvent, how do I let propagate the event I don't want to handle ? -- Frédéric http://www.gbiloba.org ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] Defining a custom slot in Designer

2009-01-17 Thread Henrik Pauli
Hi all, I was messing around in Designer today and I wanted to add my QMainWindow a new slot. The ui file has it, but the moment I try to loadUi it, I get the following: Traceback (most recent call last): File ./testclient.py, line 11, in module w = uic.loadUi(testclient.ui) File

Re: [PyQt] Problem calling a window

2009-01-17 Thread Sandro Dutra
Finally, with this code by Sergio Jovani, the problem is solved. ''' Try with this: wndMain = Pro2MainWindow(self) # --- set as parent QDialog wndMain.showMaximized() self.hide() ''' Thanks! 2009/1/15 Sergio Jovani lese...@gmail.com Hi, If you want to call a QMainWindow from a QDialog you

Re: [PyQt] Defining a custom slot in Designer

2009-01-17 Thread David Boddie
On Sat Jan 17 17:19:44 GMT 2009, Henrik Pauli wrote: I was messing around in Designer today and I wanted to add my QMainWindow a new slot. The ui file has it, but the moment I try to loadUi it, I get the following: Traceback (most recent call last): File ./testclient.py, line 11, in

Re: [PyQt] Subclass pyuic4 generated file...

2009-01-17 Thread NoursBleu
On Friday 16 January 2009 20:47:13 simozack wrote: I forward this message to the list, because I send this only in private. Sorry for the error. Simone -- Forwarded message -- From: simozack simoz...@yahoo.it Date: 2009/1/16 Subject: Re: [PyQt] Subclass pyuic4 generated

[PyQt] Graphic view

2009-01-17 Thread Frédéric
Ok, I've almost finished to switch my app from PyGTK to PyQt (much faster than I thought). The last things I need to do is the shootingArea (the tricky part): http://trac.gbiloba.org/papywizard/attachment/wiki/ScreenShots/shootDialog_mosaic_pc.png

Re: [PyQt] Defining a custom slot in Designer

2009-01-17 Thread Henrik Pauli
On Saturday 17 January 2009, David Boddie wrote: On Sat Jan 17 17:19:44 GMT 2009, Henrik Pauli wrote: I was messing around in Designer today and I wanted to add my QMainWindow a new slot. The ui file has it, but the moment I try to loadUi it, I get the following: Traceback (most recent

Re: [PyQt] Defining a custom slot in Designer

2009-01-17 Thread David Boddie
On Sat Jan 17 23:52:10 GMT 2009, Henrik Pauli wrote: On Saturday 17 January 2009, David Boddie wrote: How did you add the slot to the testclient.ui file? right-click on MainWindow, Change Signals/Slots, add a Slot. OK, I overlooked that. :-) For me, running Qt 4.4.3 and PyQt 4.4.4, using