[PyQt] Re: [Eric] oxygen icons for eric4
On Dienstag, 20. Mai 2008, Lee Connell wrote: Is anyone working on oxygen based icons for eric4 so it fits nicely with kde4? Is there any volunteer to create such an icon set? also i seen in the 4.2 snapshot that it works with oxygen theme. How do you turn off kde4 dialogs for this to work? Either use the '--nokde' switch or disable it in the configuration dialog, Interface-Interface (part 2) page. Regards, Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Re: Building with Visual Studio 2008
On Tuesday 20 May 2008 00:50:42 Kevin Watters wrote: As far as I can see SIP embeds the manifest in the executable so it is not necessary to install it. If I don't run mt on the exe then it fails to run. If I do then it runs - irrespective of whether the manifest is installed or not. I second this--I had to add the following post-build steps to my scripts: cd sipgen mt.exe -manifest sip.exe.manifest -outputresource:sip.exe;1 cd .. cd siplib mt.exe -manifest sip.pyd.manifest -outputresource:sip.pyd;2 cd .. From what I could tell, nmake doesn't do this part for you. (FYI, The ;1 means exe and the ;2 means dll.) Might be worth incorporating to make people's lives easier on MSVC2008. I have tested current SIP and PyQt snapshots building Python 2.6a3 with MSVC2008 and everything seems fine. SIP has a new win32-msvc2008 platform which is the default when using Python 2.6. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Problem building PyQt4.4 on Vista / MSVC2005
After building Python 2.5.2, Qt 4.4 and sip 4.7.5, I'm unable to build PyQt4.4. It seems to have something to do with manifests, here is the end of the error log: -- ... snip ... sipQtCoreQtKeyboardModifiers.cpp sipQtCoreQt.cpp sipQtCoreQSysInfo.cpp Generating Code... link /NOLOGO /DLL /SUBSYSTEM:WINDOWS \/MANIFESTDEPENDENCY:type=\'win32\' name=\'Microsoft.Windows.Common-Controls\' version=\'6.0.0.0\' publicKeyToken=\'6595b64144ccf1df\' language=\'*\' processorArchitecture=\'*\'\ /INCREMENTAL:NO /OUT:QtCore.pyd @C:\Users\Haakon\AppData\Local\Temp\nm4E20.tmp LINK : fatal error LNK1104: cannot open file '/MANIFESTDEPENDENCY:type=\'win32\'.obj' NMAKE : fatal error U1077: 'D:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\link.EXE' : return code '0x450' Stop. NMAKE : fatal error U1077: 'D:\Program Files (x86)\Microsoft Visual Studio 8\VC \BIN\nmake.exe' : return code '0x2' Stop. -- Here is the configure commandline i used: G:\Code\lib\PyQt-win-gpl-4.4g:\Code\lib\Python-2.5.2\PCbuild8\win32release\ python.exe configure.py INCDIR+=g:\Code\lib\Python-2.5.2\PC LIBDIR+=g:\Code\lib\Python-2.5.2\PCbuild8\win32release Any ideas? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] configuring pykde4, error
Hi Jim, On Thu, May 15, 2008 at 6:02 PM, Jim Bublitz [EMAIL PROTECTED] wrote: I think I must have a different version of configure.py than you are expecting. I'm using the one that comes with pykde-4.0.2-1 at the riverbankcomputing website. It doesnt have a variable called opt_qt_inc_dir, nor a statement like if incdir.startswith ('Q'). Here is part of configure.py, starting at line 587: That seems to be the problem. Try the attached configure.py. It should be the one that's in PyKDE4 tarball, but I've checked and this should have the logic for setting up the include paths correctly. Not sure what happened here. I'll be away from my computer until Sat night/Sun morning. I tired with the new configure.py that Jim posted. That helped, make is using the correct include dirs for Qt4. In addition to copying the extras/kde402 directory to extras/kde403 and extras/kde404, I had to comment out several lines in sip/kdecore/kdecoremod.sip.in: //%Include kmimetypetrader.sip //%Include kmacroexpander.sip At that point, I get another can't use default assignment operator error: - g++ -c -Wno-deprecated-declarations -pipe -fPIC -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_GUI_LIB -I. -I../extra/kde404 -I/usr/kde/4.0/include -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork -I/usr/kde/4.0/include/sonnet -I/usr/include/python2.5 -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/X11R6/include -o sipkdecoreKEncodingDetector.o sipkdecoreKEncodingDetector.cpp /usr/kde/4.0/include/kencodingdetector.h: In member function 'KEncodingDetector KEncodingDetector::operator=(const KEncodingDetector)': /usr/kde/4.0/include/kencodingdetector.h:59: error: non-static const member 'KEncodingDetectorPrivate* const KEncodingDetector::d', can't use default assignment operator sipkdecoreKEncodingDetector.cpp: In function 'void assign_KEncodingDetector(void*, const void*)': sipkdecoreKEncodingDetector.cpp:596: note: synthesized method 'KEncodingDetector KEncodingDetector::operator=(const KEncodingDetector)' first required here make[1]: *** [sipkdecoreKEncodingDetector.o] Error 1 make[1]: Leaving directory `/home/share/packages/PyKDE4-4.0.2-1/kdecore' make: *** [all] Error 2 -- If I comment out //%Include kencodingdetector.sip, configure.py fails: -- $ python configure.py -k /usr/kde/4.0/ package /usr/lib64/python2.5/site-packages/PyKDE4 PyKDE version 4.0.2 --- Python include directory is /usr/include/python2.5 Python version is 2.5.2 sip version is 4.7.5 (4.7.5) Qt directory is /usr Qt version is 4.4.0 PyQt directory is /usr/share/sip PyQt version is 4.4 (4.4.0) gcc version 4.2.3 no concatenation KDE base directory is /usr/kde/4.0/ KDE include directory is /usr/kde/4.0/include KDE lib directory is /usr/kde/4.0/lib64 lib directory is lib KDE version is 4.0.4 (0x40004) PyKDE modules will be installed in /usr/lib64/python2.5/site-packages/PyKDE4 PyKDE .sip files will be installed in /usr/share/sip/PyKDE4 PyKDE modules to be built: kdecore solid kdeui kio kutils kparts khtml Generating the C++ source for the kdecore module... Creating the Makefile for the kdecore module... Generating the C++ source for the solid module... Creating the Makefile for the solid module... Generating the C++ source for the kdeui module... sip: KEncodingDetector::AutoDetectScript is undefined Error: Unable to create the C++ code. --- Is there something else I should try at this point? On Friday 16 May 2008 07:03:44 am Giacomo Lacava wrote: Isn't this related to http://www.riverbankcomputing.com/pipermail/pyqt/2008-March/018916.html ? the fixed PyKDE 4.0.2-2 never made it to the RiverbankComputing site, you can still only download 4.0.2-1. Is 4.0.2-1 the most up-to-date code available to the public? Thanks, Darren ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt4.4 - Exporting .ui to .py problems with QIcon
Well.. seems still does not work. Today i have time to test this and i have: Traceback (most recent call last): File OpenCoffee.py, line 59, in module mainApp = OpenCoffee() File MainApp.py, line 84, in __init__ self.setupUi(self) File /home/gustavo/Documentos/Desarrollo/OpenCoffee/trunk/opencoffee-server/gui/ui_main.py, line 19, in setupUi icon.addPixmap(QtGui.QPixmap(:/Icons/icons/windowIcon.svg,QtGui.QIcon.Normal,QtGui.QIcon.Off)) TypeError: argument 2 of QPixmap() has an invalid type ui_main.py is the exported .ui. Cheers. 2008/5/19, Phil Thompson [EMAIL PROTECTED]: On Monday 19 May 2008 14:56:52 Gustavo A. Díaz wrote: Nice, now it works... I saw that now does not use anymore setIcon(QtGui.QIcon...), instead it uses addPixmap(QtGui.QPixmap). Is that normal? Maybe is stupid question... but is how now an icon is being added in this version of Qt? Easy enough to find out by running uic on the same .ui file... Phil -- Gustavo A. Díaz GDNet Projects www.gdnet.com.ar ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] configuring pykde4, error
On Tuesday 20 May 2008 10:47, Darren Dale wrote: At that point, I get another can't use default assignment operator error: I'm not sure what's causing that error, which seems to be the basic problem (other than having an updated configure.py). I haven't downloaded the latest KDE yet, but will have to do that and see if I can reproduce the problem. If I comment out //%Include kencodingdetector.sip, configure.py fails: ... Generating the C++ source for the kdeui module... sip: KEncodingDetector::AutoDetectScript is undefined Error: Unable to create the C++ code. --- Is there something else I should try at this point? KCodecAction (sip/kdeui/kcodecaction.sip) depends on KEncodingDetector. You can either comment out the KEncodingDetector references in kcodecaction.sip or comment out that sip file in sip/kdeui/kdeuimod.sip.in. Jim ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QPixmap bug in pyuic 4.4
Hello, I think I've found a bug in pyuic4... I've been using PyQt 4.3 from Kubuntu packages, but when I upgraded Qt and Designer to version 4.4, pyuic started to choke on the output from the designer, it seems they changed something in the format. So I compiled PyQt 4.4 from source, and now pyuic manages to generate the output file, but an exception is thrown when the file is run. It seems that there's a parentheses in a wrong place in such line: File ./test.py, line 16, in setupUi icon.addPixmap(QtGui.QPixmap(:/icons/menu/add_user.png,QtGui.QIcon.Normal,QtGui.QIcon.Off)) TypeError: argument 2 of QPixmap() has an invalid type The last 2 parameters should be arguments of addPixmap, not of QPixmap constructor. I fixed this by updating a line in the source code of pyuic, in properties.py, function _iconset, line 145: icon.addPixmap(QtGui.QPixmap(e.text.replace(\\, ), mode, state)) to icon.addPixmap(QtGui.QPixmap(e.text.replace(\\, )), mode, state) Now the generated file can be run and everything seems to be ok. Best regards, Jakub ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] ANN: PyQt v4.4.2 and SIP v4.7.6 Released
PyQt v4.4.2 and SIP v4.7.6 have been released and are available from their respective download pages. All known problems with PyQt have been fixed. There is also support for QRunnable and QThreadPool. The SIP changes are mainly build system related. There is a new win32-msvc2008 platform which is the default if using Python v2.6 on Windows. PyQt builds without problems against Python v2.6a3 with MSVC 2008. The PyQt GPL Windows installer has been updated to the latest version. It still includes Qt but no longer includes any 3rd party packages (eric, PyQwt) as they no longer require special treatment. Note that Phonon support is not included because the Qt GPL installer doesn't include it. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt