Re: [PyQt] Static PyQt Initialization

2009-03-04 Thread Phil Thompson
On Tue, 3 Mar 2009 16:20:34 -1000, McKay Davis mckay@gmail.com wrote: Hi all, My setup: Windows 32-bit, Visual Studio 2008, PyQt 4.4.4, Qt 4.4.3, sip 4.7.9. I need to build SIP, Python and PyQt statically. I can get everything to build and link but I cannot figure out how to

[PyQt] Disk usage and PyQt

2009-03-04 Thread NARCISO, Rui
Hi all, I'm in need of a small PyQt4 application that gives me in the model-tree format the disc usage percentage for all of the discs mounted on my machine (as well the possibility to add new discs) Does anyone have something of the sort that I can build on or at least any advices ? Thanks

Re: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Phil Thompson
On Wed, 4 Mar 2009 16:06:18 +0100 (CET), Frédéric frederic.mantega...@gbiloba.org wrote: Hello, I use a splashscreen to show something before loading all modules. This is especially usefull on small and slow devices, like Nokia N8x0. I would like to use the WindowStaysOnTopHint flag, to

Re: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Frédéric
Le 4/3/2009, Phil Thompson p...@riverbankcomputing.com a écrit: The QtCore module is always loaded. If you import the QtGui module the first thing it does (after importing the sip module) is to import the QtCore module. Ok. So there is no problem using the flag. Thanks. -- Frédéric

RE: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread NARCISO, Rui
I was under the impression we always needed to do: from PyQt4.QtGui import * from PyQt4.QtCore import * If QtGui imports already QtCore is it not redundant ? If so, what would be the right way to do it ? Rui -Message d'origine- De : pyqt-boun...@riverbankcomputing.com

RE: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Phil Thompson
On Wed, 4 Mar 2009 16:56:51 +0100, NARCISO, Rui rui.narc...@airbus.com wrote: I was under the impression we always needed to do: from PyQt4.QtGui import * from PyQt4.QtCore import * If QtGui imports already QtCore is it not redundant ? If so, what would be the right way to do it ? It's

Re: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Giovanni Bajo
On Wed, 2009-03-04 at 16:06 +0100, Frédéric wrote: I would like to use the WindowStaysOnTopHint flag, to ensure splashscreen appears on top, but this also requires the QtCore module, which is very long to load on Nokia. Is it? Just to get an idea, how long does it take to do: python -c

RE: [PyQt] Splash screen and WindowStaysOnTopHint flag

2009-03-04 Thread Giovanni Bajo
On Wed, 2009-03-04 at 16:56 +0100, NARCISO, Rui wrote: I was under the impression we always needed to do: from PyQt4.QtGui import * from PyQt4.QtCore import * If QtGui imports already QtCore is it not redundant ? If so, what would be the right way to do it ? One thing is importing the

[PyQt] PyQt-x11-gpl-4.5-snapshot-20090303 compilation problem

2009-03-04 Thread Kay D
Hello I'm trying to compile PyQt4 on RHEL server. I've successfully compiled and installed qt-x11-opensource-src-4.5.0 and sip-4.8-snapshot-20090303 For PyQt-x11-gpl-4.5-snapshot- 20090303 I've successfully completed configure step as follows: python configure.py -q

[PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Yasir Suhail
I have Python 2.5, GCC 4.0, SIP, and QT3 installed. After running $ python configure.py -q /opt/local/lib/qt3/ I run make and it gives the following errors. Any ideas on what is going on? $ make g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I.

Re: [PyQt] PyQt-x11-gpl-4.5-snapshot-20090303 compilation problem

2009-03-04 Thread Phil Thompson
On Wed, 4 Mar 2009 19:47:53 +0200, Kay D dtc@gmail.com wrote: Hello I'm trying to compile PyQt4 on RHEL server. I've successfully compiled and installed qt-x11-opensource-src-4.5.0 and sip-4.8-snapshot-20090303 For PyQt-x11-gpl-4.5-snapshot- 20090303 I've successfully completed

Re: [PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Yasir Suhail
Sure, my sip version is 4.7.9. Found as $ python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type help, copyright, credits or license for more information. import sip sip.SIP_VERSION_STR '4.7.9' sip.SIP_VERSION 263945 I am trying to

Re: [PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Phil Thompson
On Wed, 4 Mar 2009 16:07:14 -0500, Yasir Suhail yasir.suh...@gmail.com wrote: Sure, my sip version is 4.7.9. Found as $ python Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type help, copyright, credits or license for more

Re: [PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Yasir Suhail
I did not provide any options when configuring sip. Do you suggest I re-install sip with some specific options? I looked up sipconfig.py that config.py generated, and I think the relevant section is: # These are installation specific values created when SIP was configured. _pkg_config = {

Re: [PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Phil Thompson
On Wed, 4 Mar 2009 16:37:00 -0500, Yasir Suhail yasir.suh...@gmail.com wrote: I did not provide any options when configuring sip. Do you suggest I re-install sip with some specific options? I looked up sipconfig.py that config.py generated, and I think the relevant section is: # These are

Re: [PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Yasir Suhail
Unfortunately, configuring pyqt with -p darwin-g++ and running make gives the same error. Where can I download QT 3, so I can install it correctly? How do I install QT 3 natively? Thanks. On Wed, Mar 4, 2009 at 4:58 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 4 Mar 2009

Re: [PyQt] Trouble installing PyQt on Mac

2009-03-04 Thread Adam Tenderholt
Check out http://www.macports.org/. They have a port for pyqt3. Most of their ports work pretty well, but I've never actually installed PyQt this way so you're on your own from here. On Wed, Mar 4, 2009 at 4:15 PM, Yasir Suhail yasir.suh...@gmail.com wrote: Unfortunately, configuring pyqt with