[PyQt] determining pyqt version

2009-07-18 Thread Wolfgang Rohdewald
I am doing that with: import PyQt4.pyqtconfig PYQTVERSION = PyQt4.pyqtconfig.Configuration().pyqt_version_str but now that I tried to deploy it I see that this imports sipconfig which is part of the ubuntu package python-sip4-dev I do not want to depend on -dev packages on target machines, is

Re: [PyQt] determining pyqt version

2009-07-18 Thread Phil Thompson
On Sat, 18 Jul 2009 11:59:23 +0200, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: I am doing that with: import PyQt4.pyqtconfig PYQTVERSION = PyQt4.pyqtconfig.Configuration().pyqt_version_str but now that I tried to deploy it I see that this imports sipconfig which is part of the ubuntu

Re: [PyQt] determining pyqt version

2009-07-18 Thread Wolfgang Rohdewald
On Saturday 18 July 2009, Phil Thompson wrote: On Sat, 18 Jul 2009 11:59:23 +0200, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: is there any other way to find out the current version? PyQt4.QtCore.PYQT_VERSION_STR PyQt4.QtCore.PYQT_VERSION thank you! -- Wolfgang

[PyQt] QTabWidget subclassing woes

2009-07-18 Thread Hans-Peter Jansen
Hi, I tried to subclass QTabWidget in order to do some processing before a tab is displayed or left. The problem is, that my setCurrentIndex methods are not called, if switching tabs via keyboard (cursor left/right on linux). Interestingly, my keyPressEvent handlers are called. Out of

[PyQt] opening Dock widget as a tab

2009-07-18 Thread vidyadhar
I am creating a dock widget dynamically at runtime. problem i am facing is 1 i have to open a dock widget containing two tree widgets as a tab dynamically at runtime 2also the tabs of dock widget should be placed above the dock widget and not below the widget . please help me out as i have no

Re: [PyQt] QTabWidget subclassing woes

2009-07-18 Thread Andreas Pakulat
On 18.07.09 12:18:37, Hans-Peter Jansen wrote: Hi, I tried to subclass QTabWidget in order to do some processing before a tab is displayed or left. The problem is, that my setCurrentIndex methods are not called, if switching tabs via keyboard (cursor left/right on linux). Thats because

[PyQt] [i18n] Can't understand contexts

2009-07-18 Thread Anonymous
Hi, I develop my application using PyQt4. First I've decided to put all messages those are subject to be translated into a separate file, let's call it msg.py like: ADD_ACTION = QCoreApplication.translate('here goes context', 'Add', '', 1) # ... and etc. and init QApplication and setup

Re: [PyQt] [i18n] Can't understand contexts

2009-07-18 Thread Andreas Pakulat
On 18.07.09 18:28:39, Anonymous wrote: Hi, I develop my application using PyQt4. First I've decided to put all messages those are subject to be translated into a separate file, let's call it msg.py like: ADD_ACTION = QCoreApplication.translate('here goes context', 'Add', '', 1) # ...

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-18 Thread Baz Walter
projetmbc wrote: Hello Baz Walter gives me somethiong to start with QScintilla but I don't uderstand why the joined code doesn't make possible to reduce or expand the folders. Maybe I've forgotten to send something. hello christophe i expanded my earlier example to include folding. this

Re: [PyQt] Small paid development task

2009-07-18 Thread Arve Knudsen
Hi Jason I'm looking at this as we speak (checking out Qt from git), although I can't promise anything. Arve On Tue, Jul 14, 2009 at 10:58 PM, Jason H scorp...@yahoo.com wrote: I mentioned last week that I was looking to get some of the Kinetic project's bindings into PyQt. Unfortunately,

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-18 Thread projetmbc
Baz Walter a écrit : hello christophe i expanded my earlier example to include folding. this is a complete config files lexer based on the lexer for properties files in src/LexOthers.cpp. Thanks for this. Santa Claus exists... ;-) I'll look at and study your code to see how to do my

Re: [PyQt] Problem with folding and QSciScintilla

2009-07-18 Thread Baz Walter
projetmbc wrote: Baz Walter a écrit : hello christophe i expanded my earlier example to include folding. this is a complete config files lexer based on the lexer for properties files in src/LexOthers.cpp. Thanks for this. Santa Claus exists... ;-) I'll look at and study your code to see

[PyQt] Function-pointer typedef

2009-07-18 Thread Arve Knudsen
Hi Phil In my attempt to wrap the new Qt animation classes, as requested by Jason H, I find that I'm not able declare a function-pointer typedef within a class. According to the SIP syntax specification it seems perfectly possible, however. Can you please tell me why the following declaration

Re: [PyQt] Function-pointer typedef

2009-07-18 Thread Phil Thompson
On Sat, 18 Jul 2009 22:42:31 +0200, Arve Knudsen arve.knud...@gmail.com wrote: Hi Phil In my attempt to wrap the new Qt animation classes, as requested by Jason H, I find that I'm not able declare a function-pointer typedef within a class. According to the SIP syntax specification it seems

Re: [PyQt] Function-pointer typedef

2009-07-18 Thread Arve Knudsen
On Sat, Jul 18, 2009 at 10:59 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 18 Jul 2009 22:42:31 +0200, Arve Knudsen arve.knud...@gmail.com wrote: Hi Phil In my attempt to wrap the new Qt animation classes, as requested by Jason H, I find that I'm not able declare a

Re: [PyQt] Function-pointer typedef

2009-07-18 Thread Phil Thompson
On Sat, 18 Jul 2009 23:06:47 +0200, Arve Knudsen arve.knud...@gmail.com wrote: On Sat, Jul 18, 2009 at 10:59 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Sat, 18 Jul 2009 22:42:31 +0200, Arve Knudsen arve.knud...@gmail.com wrote: Hi Phil In my attempt to wrap the new Qt

[PyQt] Strange issue when using Matplotlib with PyQt4

2009-07-18 Thread Lukas Hetzenecker
Hello, I tried to embed a Matplotlib FigureCanvas into a QTabWidget. But at the first start of my script - the main.py in the attatched example - the widget in the Tab is incorrectly sized. If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I put it in a QWidget it is