Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread Phil Thompson
On Monday 15 January 2007 1:27 am, [EMAIL PROTECTED] wrote: So I am back where I was last week, I think I really do need to install a newer version of pyqt4. After downloading the 4.1.1 package I tried: $ python configure.py Determining the layout of your Qt installation... Error: Failed

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Remy Anthoine
Thanks. Cygwin is probably messing up indeed so I tried to launch make by specifying the full path of make. Here is the output of configure.py : C:\Documents and Settings\Administrator\Desktop\sip-4.5.2c:\python25\python con figure.py -p win32-g++ This is SIP 4.5.2 for Python 2.5 on win32. The

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
On 1/15/2007 11:12 AM, Remy Anthoine wrote: Thanks. Cygwin is probably messing up indeed so I tried to launch make by specifying the full path of make. That will not work because make will still invoke programs out of PATH, so will still find cygwin stuff. You must edit PATH. Try removing

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread Andreas Pakulat
On 15.01.07 02:51:24, David Boddie wrote: On Mon Jan 15 02:27:21 MET 2007, pykde at x11.cjb.net wrote: $ python configure.py - q /usr/bin/qmake-qt4 Determining the layout of your Qt installation... Error: Failed to create ./qtdirs. Make sure you have a working Qt v4 qmake on your PATH or

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread Andreas Pakulat
On 14.01.07 21:46:27, [EMAIL PROTECTED] wrote: Two replies! Y'all are amazing. On Sunday January 14 2007 8:49 pm, Andreas Pakulat wrote: Check to see that there exists a qtdirs.pro and qtdirs.cpp as well as a qtdirs.mk. If all of those exist try running make -f qtdirs.mk er, Where

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread David Boddie
On Mon Jan 15 12:36:18 MET 2007, Andreas Pakulat wrote: No, PyQt4's configure works different. We had to do this in the early stages of PyQt4, but nowadays it gets the information about Qt paths from a compiled program and those are always the same, no matter where the qmake that belongs to

[PyKDE] changing background color of QTextEdit/QLineEdit

2007-01-15 Thread Steven James Samuel Stapleton
I have severa QTextEdits and QLineEdits in my application, and I want to make them more friendly for the user. (1) I would like to slightly alter the color of the focused edit object (it's very helpful for visually impared users such as myself). (2) I want to make bad input sections red. To

[PyKDE] Problem with pylupdate of PyQt4

2007-01-15 Thread Detlev Offenbach
Hi, it seems, that pylupdate doesn't recognise translation strings like self.trUtf8(The project contains %n file(s) with syntax errors., , filesWithSyntaxErrors) This is a form new in Qt 4.2 and is the Plural form of tr (or trUtf8). Regards, Detlev -- Detlev Offenbach [EMAIL

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
On 1/15/2007 2:03 PM, Remy Anthoine wrote: Great, now SIP builds and install. On to the next problem :) doing the PyQt configure gives me the following output: c:\python25\python configure.py Determining the layout of your Qt installation... Error: C:\Qt\4.2.1\bin\qmake.exe failed to create

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Remy Anthoine
qmake -v QMake version 2.01a Using Qt version 4.2.1 in C:\Qt\4.2.1\lib c:\python25\python configure.py -w Determining the layout of your Qt installation... C:\Qt\4.2.1\bin\qmake.exe -o qtdirs.mk qtdirs.pro Could not find mkspecs for your QMAKESPEC after trying: C:\Qt\4.2.1\mkspecs

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
On 1/15/2007 2:39 PM, Remy Anthoine wrote: qmake -v QMake version 2.01a Using Qt version 4.2.1 in C:\Qt\4.2.1\lib c:\python25\python configure.py -w Determining the layout of your Qt installation... C:\Qt\4.2.1\bin\qmake.exe -o qtdirs.mk qtdirs.pro Could not find mkspecs for your QMAKESPEC

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Remy Anthoine
QMAKESPEC was win32-msvc so I tried to change it into win32-g++ Unfortunately, I'm getting the same output when running configure.py On 1/15/07, Giovanni Bajo [EMAIL PROTECTED] wrote: What are the contents of your QMAKESPEC environment variable? What if you change it to win32-g++? It should

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Giovanni Bajo
On 1/15/2007 2:56 PM, Remy Anthoine wrote: QMAKESPEC was win32-msvc so I tried to change it into win32-g++ Unfortunately, I'm getting the same output when running configure.py That is weird... you do have a directory named win32-g++ under C:\Qt\4.2.1\mkspecs, right? The directory should

Re: [PyKDE] PyQt Windows Build

2007-01-15 Thread Remy Anthoine
Definitely not a stupid questions :) It's working now, thanks for your patience Giovanni. and (stupid question) you did close and reopen your command prompt after changing the environment variables? :) -- Giovanni Bajo ___ PyKDE mailing list

Re: [PyKDE] changing background color of QTextEdit/QLineEdit

2007-01-15 Thread Mark Summerfield
On Mon 15-Jan-07 13:00, Steven James Samuel Stapleton wrote: I have severa QTextEdits and QLineEdits in my application, and I want to make them more friendly for the user. (1) I would like to slightly alter the color of the focused edit object (it's very helpful for visually impared users

[PyKDE] embedding python widgets in C++ app

2007-01-15 Thread Patrick Stinson
I know I've seen info here and there about using python widgets in C++ apps, but I need a recap. So I've already got this great C++ app with an embedded interpreter for scripting special app functions. What do I need to do to write a widget in python and use it as a child in my C++ app? cheers

[PyKDE] gc bug?

2007-01-15 Thread K.S.Sreeram
[Python-2.5, VC-7.1, sip-20070110, PyQt4-20070104, Qt-4.2.2] Hi all, I've started porting an existing app from py2.4/qt4.1 to py2.5/qt4.2, and ran into some pretty random behavior. When using QSocketNotifier/QTimer callbacks, the callbacks occur on *impossible* functions! And after about 10 to

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread pykde
On Monday January 15 2007 6:38 am, Andreas Pakulat wrote: you need libqt4-debug Installed On Monday January 15 2007 3:52 am, Phil Thompson wrote: Use the -w argument to see what error messages the compiler is generating. Ok: $ python configure.py -w

Re: [PyKDE] embedding python widgets in C++ app

2007-01-15 Thread Krzysztof Lichota
Patrick Stinson napisaƂ(a): I know I've seen info here and there about using python widgets in C++ apps, but I need a recap. So I've already got this great C++ app with an embedded interpreter for scripting special app functions. What do I need to do to write a widget in python and use it

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread Andreas Pakulat
On 15.01.07 17:50:08, [EMAIL PROTECTED] wrote: On Monday January 15 2007 6:38 am, Andreas Pakulat wrote: you need libqt4-debug Installed Good. On Monday January 15 2007 3:52 am, Phil Thompson wrote: Use the -w argument to see what error messages the compiler is generating. $ python

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread Phil Thompson
On Monday 15 January 2007 10:50 pm, [EMAIL PROTECTED] wrote: On Monday January 15 2007 6:38 am, Andreas Pakulat wrote: you need libqt4-debug Installed On Monday January 15 2007 3:52 am, Phil Thompson wrote: Use the -w argument to see what error messages the compiler is generating. Ok:

Re: [PyKDE] gc bug?

2007-01-15 Thread Phil Thompson
On Monday 15 January 2007 8:23 pm, K.S.Sreeram wrote: [Python-2.5, VC-7.1, sip-20070110, PyQt4-20070104, Qt-4.2.2] Hi all, I've started porting an existing app from py2.4/qt4.1 to py2.5/qt4.2, and ran into some pretty random behavior. When using QSocketNotifier/QTimer callbacks, the

Re: [PyKDE] embedding python widgets in C++ app

2007-01-15 Thread David Boddie
On Monday 15 January 2007 07:51:28 -0800, Patrick Stinson wrote: I know I've seen info here and there about using python widgets in C++ apps, but I need a recap. I've seen it done so many times I think I need a recap, too! So I've already got this great C++ app with an embedded interpreter

Re: [PyKDE] Compliling pyqt4

2007-01-15 Thread pykde
On Monday January 15 2007 6:12 pm, Andreas Pakulat wrote: You forgot to supply -q /usr/bin/qmake-qt4 and thus Ok, so I did this: python configure.py -w -q /usr/share/qt4/bin/qmake and it looked like it was compiling, it spent a while at that. Before it finished though, it ran into a bunch

Re: [PyKDE] embedding python widgets in C++ app

2007-01-15 Thread Gerard Vermeulen
On Mon, 15 Jan 2007 07:51:28 -0800 Patrick Stinson [EMAIL PROTECTED] wrote: I know I've seen info here and there about using python widgets in C++ apps, but I need a recap. So I've already got this great C++ app with an embedded interpreter for scripting special app functions. What do I