RE: [PyQt] Error building PyQt4.5.1 (qpycore_chimera.cpp:392: error: too few arguments to function)

2009-06-17 Thread Nate Reid
You were correct. Another developer had put sip.h in the Qt-4.5.1 include directory! All is building well now! -N -Original Message- From: Nate Reid Sent: Wednesday, June 17, 2009 6:06 PM To: 'Phil Thompson' Cc: pyqt@riverbankcomputing.com Subject: RE: [PyQt] Error building PyQt4.5.1 (q

RE: [PyQt] Error building PyQt4.5.1 (qpycore_chimera.cpp:392: error: too few arguments to function)

2009-06-17 Thread Nate Reid
Is there any way to diagnose where the offending SIP installation is coming from? I checked my sipconfig.py, path to sip, and path to sip.h (as in the build output below) and everything look correct. Could it be because I built sip using -u for debug? -Nate -Original Message- From: Phi

Re: [PyQt] floating player controls (like new Quicktime)?

2009-06-17 Thread Brian Kelley
You are running into problems with the operating system's compositing layer. I have had the same problem with transparent over OpenGL. What you might try, is to move your player widget into a QGraphicsWidget and play it in a QGraphicsView. If this works, you can make your floating widgets on t

Re: [PyQt] Error building PyQt4.5.1 (qpycore_chimera.cpp:392: error: too few arguments to function)

2009-06-17 Thread Phil Thompson
On Wed, 17 Jun 2009 14:30:48 -0700, Nate Reid wrote: > I am trying to build PyQt4.5.1 against Qt 4.5.1 using Sip 4.8.1 and Python > 2.5.1 on Linux amd64, but I'm getting this error immediately: > > Platform: Redhat EL5 Linux, amd64 > > I'm using Python-2.5.1 built using 4 character unicode (UC4)

[PyQt] Error building PyQt4.5.1 (qpycore_chimera.cpp:392: error: too few arguments to function)

2009-06-17 Thread Nate Reid
I am trying to build PyQt4.5.1 against Qt 4.5.1 using Sip 4.8.1 and Python 2.5.1 on Linux amd64, but I'm getting this error immediately: Platform: Redhat EL5 Linux, amd64 I'm using Python-2.5.1 built using 4 character unicode (UC4) Qt 4.5.1 sip 4.8.1 configured with the above python g++ 4.1.1 m

[PyQt] floating player controls (like new Quicktime)?

2009-06-17 Thread vamp
Hello, After watching the apple keynote I thought I would try to duplicate the floating video player control they are using in the new version of Quicktime. A semi-transparent widget on top of a window works fine but I have problems when it comes to placing it over top of a playing video. Ultim

[PyQt] Problem with Qt.QTest.mouseClick

2009-06-17 Thread Brent Villalobos
I am having issues getting Qt.QTest.mouseClick() working in some tests I wrote. This test fails: def testFixBug(self): # Trying to figure out why my mouse click isn't being recognized. checkBox = QtGui.QCheckBox(self.view) self.assertEqual(checkBox.checkState(), QtCore.Qt.U

Re: [PyQt] Using Unicode

2009-06-17 Thread Gabriel Hahmann
I've tried this way but didnt work. Maybe I forget to change something. In fact I've tried the "u" thing that Raoul said: QtGui.QPushButton(self.tr(u'&Next >')) And worked perfectly as I expected. Thanks for everyone that helped me. []'s Gabriel. On Wed, Jun 17, 2009 at 2:08 PM, Detlev Offenb

Re: [PyQt] Empty style sheet changes QLineEdit

2009-06-17 Thread David Wolfe
On 6/12/2009 2:32 AM, Mads Ipsen wrote: * Try to enter a 'g' in the example included below. The lower part of the 'g' will be invisible... FWIW, I can't reproduce this behavior using Riverbank's binary installer for PyQt4.5 (bundles Qt4.5.1) on Windows Vista Home Premium. I type a 'g' in the Q

Re: [PyQt] QScintilla 2.4 doesn't complete correctly with umlauts

2009-06-17 Thread Detlev Offenbach
On Mittwoch, 17. Juni 2009, Hans-Peter Jansen wrote: > Hi Phil, > > The python bindings of QScintilla 2.4, as used in Eric 4.3.4, does not > complete correctly, if the words contains umlauts (the words in question > get truncated just before them). Are umlauts valid chracters for Python2 variable/

Re: [PyQt] Using Unicode

2009-06-17 Thread Detlev Offenbach
On Mittwoch, 17. Juni 2009, Gabriel Hahmann wrote: > On Wed, Jun 17, 2009 at 12:57 PM, projetmbc wrote: > > projetmbc a écrit : > >> dial_project_2 is just my GUI class. For example, the example that I > >> give comes frome something like that > >> class dial_Projet2(QtGui.QDialog, Ui_dial_Projet2

Re: [PyQt] make an icon disabled while keeping it checked

2009-06-17 Thread David Wolfe
It seems that it is impossible to keep an icon checked and make it disabled with the styles other than the "Windows" one... Your example worked fine for me in all styles using PyQt 4.5 from Riverbank's binary installer on Windows (Vista Home Premium). The blue icon remained checked while disabl

[PyQt] QScintilla 2.4 doesn't complete correctly with umlauts

2009-06-17 Thread Hans-Peter Jansen
Hi Phil, The python bindings of QScintilla 2.4, as used in Eric 4.3.4, does not complete correctly, if the words contains umlauts (the words in question get truncated just before them). I might remember this as a longer standing problem, but didn't got around reporting it until now :-(. As I

Re: [PyQt] SOLVED Dragging a QGraphicsItem from a QListView

2009-06-17 Thread Mads
I forgot to have a reference to the scene... Thanks From: Mads To: pyqt@riverbankcomputing.com Sent: Tuesday, June 16, 2009 4:46:27 PM Subject: Re: [PyQt] Dragging a QGraphicsItem from a QListView I forgot to add the right code. I have attached the drag and

Re: [PyQt] Using Unicode

2009-06-17 Thread Gabriel Hahmann
On Wed, Jun 17, 2009 at 12:57 PM, projetmbc wrote: > projetmbc a écrit : >> >> dial_project_2 is just my GUI class. For example, the example that I give >> comes frome something like that >> class dial_Projet2(QtGui.QDialog, Ui_dial_Projet2): >>   >> >> Ui_dial_Projet2 is a Python file created

[PyQt] PyQt4 problem: QApplication() has an invalid type

2009-06-17 Thread Ala Al-Shaibani
Hello everyone. I am using Python 2.5.1 (default python for OS X) on macintosh. I installed few libraries, including the scipy library (scipy, numpy, matplotlib and ipython). I then installed Qt, SIP and PyQt (latest versions of each). My problem is with this code: import sys from PyQt4 import

Re: [PyQt] Using Unicode

2009-06-17 Thread projetmbc
projetmbc a écrit : dial_project_2 is just my GUI class. For example, the example that I give comes frome something like that class dial_Projet2(QtGui.QDialog, Ui_dial_Projet2): Ui_dial_Projet2 is a Python file created from a Dialog built with Qt Designer. I hope that I'm clear. Chr

Re: [PyQt] Using Unicode

2009-06-17 Thread projetmbc
Gabriel Hahmann a écrit : On Wed, Jun 17, 2009 at 11:33 AM, projetmbc wrote: Gabriel Hahmann a écrit : Hi, I'm new to the list and new to programming in python QT and I'm having a little problem dealing with accent characters. I have a little program that have the text sent to the use

Re: [PyQt] Using Unicode

2009-06-17 Thread Gabriel Hahmann
On Wed, Jun 17, 2009 at 11:33 AM, projetmbc wrote: > Gabriel Hahmann a écrit : >> >> Hi, >> >> I'm new to the list and new to programming in python QT and I'm having >> a little problem dealing with accent characters. >> >> I have a little program that have the text sent to the user interface >> us

Re: [PyQt] Using Unicode

2009-06-17 Thread Gabriel Hahmann
I'll try this today when I arrive home. Thanks for the tip. []'s Gabriel. On Wed, Jun 17, 2009 at 11:05 AM, Raoul Snyman wrote: > Hi Gabriel, > > On Wed, 17 Jun 2009 10:31:46 +0200, Gabriel Hahmann wrote: >> Are you saying something like this: >> >> QtGui.QPushButton(self.tr(u'&Next >')) >> >> I

[PyQt] make an icon disabled while keeping it checked

2009-06-17 Thread TP
Hi everybody, It seems that it is impossible to keep an icon checked and make it disabled with the styles other than the "Windows" one. Try the following example which uses the "Plastique" style. Check the blue icon, and then check on the "modif" button. The blue icon becomes unchecked on my machi

Re: [PyQt] Using Unicode

2009-06-17 Thread projetmbc
Gabriel Hahmann a écrit : Hi, I'm new to the list and new to programming in python QT and I'm having a little problem dealing with accent characters. I have a little program that have the text sent to the user interface using something like this: QtGui.QPushButton(self.tr('&Next >')) self.set

Re: [PyQt] Using Unicode

2009-06-17 Thread Raoul Snyman
Hi Gabriel, On Wed, 17 Jun 2009 10:31:46 +0200, Gabriel Hahmann wrote: > Are you saying something like this: > > QtGui.QPushButton(self.tr(u'&Next >')) > > Is that what you mean? Putting an "u" before each string? I´m looking > some information about unicode and python and in a few pages I saw >

Re: [PyQt] Using Unicode

2009-06-17 Thread Gabriel Hahmann
Thank you very much Raoul, but as I don't have much experience, could you be more specific, using an example based on my code? Are you saying something like this: QtGui.QPushButton(self.tr(u'&Next >')) self.setWindowTitle(self.tr(u'Setup').arg(len(self.history)).arg(self.num_pages)) self.topTit

Re: [PyQt] Using Unicode

2009-06-17 Thread Raoul Snyman
Hi Gabriel, On Wed, 17 Jun 2009 09:13:21 +0200, Gabriel Hahmann wrote: > QtGui.QPushButton(self.tr('&Next >')) > > In fact this is some excerpt of parts of the code. What I want to do > is translate every word of the text to Portuguese. I tried simply > translating but then it gives me an error o

Re: [PyQt] ANN: PyQt v4.5.1, PyQt v3.18.1 and SIP v4.8.1 Released

2009-06-17 Thread Jul
2009/6/17 Marcell Mars > On Tue, Jun 16, 2009 at 2:21 PM, Jul wrote: > > And what about a mailing list or RSS feed for the news ? > > :) > > i know it doesn't completely solve the requirements but if you want to > play more you can probably make it more suitable for your needs: > > http://pipes.

Re: [PyQt] ItemEntered signal and QListWidget

2009-06-17 Thread Phil Thompson
On Tue, 16 Jun 2009 23:13:20 -0400, matt.dub...@sympatico.ca wrote: > Hi Group, > > I'm trying to set a tool tip for a QListWidget that changes depending on > which item in the QListWidget the user has the mouse cursor over. I tried > to connect the QListWidget's ItemEntered signal to a function

[PyQt] Using Unicode

2009-06-17 Thread Gabriel Hahmann
Hi, I'm new to the list and new to programming in python QT and I'm having a little problem dealing with accent characters. I have a little program that have the text sent to the user interface using something like this: QtGui.QPushButton(self.tr('&Next >')) self.setWindowTitle(self.tr('Setup')