[PyQt] Changing current runtime directory prevent icons to be loaded from *.ui files

2010-04-16 Thread Yann Cointepas
Icons file names are relative in *.ui files. When loadUi is used, PyQt4 (at least for version 4.3.3) directly sends this relative path to QIcon constructor. As a result icons cannot be loaded if Python current directory is not the directory of the *.ui file. Changing the runtime directory before c

[PyQt] properly exiting application while still in init

2010-04-16 Thread Sebastian Elsner
Hello, In the __init__ method of a standard QDialog I check for some requirements to be fulfilled before the gui is shown (I communicate with a server over a QTcpSocket for that matter) If the conditions fail I want to exit the Application. How would I properly do that? Currently I tried:

[PyQt] PyQt4 logging framework

2010-04-16 Thread Bjorn Egil Ludvigsen
Hi, I have been searching for a logging framework to use. I would have liked to stick to a Qt based framework, but can only find the QDebug class that has some functionality, and there was a 3rd party software/class called QLogger for C++. Searching the internet it also seems like this has been as

Re: [PyQt] PyQt4 logging framework

2010-04-16 Thread Matthew Chambers
I use the logging framework in Python but I wrote a PyQt widget people can add to their apps to control log levels, filter logs by regex, search logs, highlight text, stuff like that. From: pyqt-boun...@riverbankcomputing.com [pyqt-boun...@riverbankcomputi

Re: [PyQt] changing SVG group rendering color

2010-04-16 Thread Jason H
Qt does not support modifying SVG content (without modifying and reparsing the file) - Original Message From: John Ossenfort To: pyqt@riverbankcomputing.com Sent: Thu, April 15, 2010 1:37:55 PM Subject: [PyQt] changing SVG group rendering color Hi list members! I've been hacking aw

Re: [PyQt] properly exiting application while still in init

2010-04-16 Thread Jason H
You can't if you're in the constructor. What you have to do, is have your constructor post an event to show or exit. I use a singleshot timer with a time of 0. This will post the event immediately after the constructor is done. - Original Message From: Sebastian Elsner To: "pyqt@ri

Re: [PyQt] properly exiting application while still in init

2010-04-16 Thread Russell Valentine
Can try something like this: in init: qapplication.postEvent(baseWindow, QtGui.QCloseEvent()) in baseWindow: def closeEvent(self, event): self.app.quit() On 04/16/10 07:03, Sebastian Elsner wrote: > Hello, > > In the __init__ method of a standard QDialog I check for some > requirements to be

[PyQt] error in Building PyQt 4.7.2 against statically compiled Qt 4.6.2 on windows

2010-04-16 Thread Karthik Tharavaad
I'm using PyQt 4.7.2 gpl Qt 4.6.2 using windows msvc 2008 I built Qt with: configure -platform win32-msvc2008 -static -release -qt-libjpeg -qt-zlib -qt-libpng -qt-gif -qt-libtiff -qt-sql-sqlite -nomake examples -nomake demos -no-vcproj -no-incredibuild-xge -openssl-linked OPENSSL_LIBS="-llibeay32

[PyQt] about QMdiArea

2010-04-16 Thread Lic . José M . Rodriguez Bacallao
hi folks, a may be simple question. I am trying to develop an MDI application for viewing dicom images with vtk. I would like to use QMdiArea. When I add a sub window, QVTKRenderWindowInteractor, and show it maximized and then I add a new maximized sub window, the screen flick and I can see the bac

Re: [PyQt] changing SVG group rendering color

2010-04-16 Thread John Ossenfort
I came to a similar conclusion, but please let me know if the following is not too far-fetched: Because ElementTree stores the XML in memory, is it feasible to read in the SVG group contents from file into an Etree element, and then modify the color attributes as necessary prior to rendering/pa