Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Von
WOW,I resolved it finally. I create a setup.py file scratch from cx_setup.py which from Armando. The main purpose of the setup.py is to include plugins of PyQt4.Then build with command:python setup.py build That's all I have done,the icon shows. Thank you Armando and Hans. Bests, On Thu, Sep 16,

Re: [PyQt] Howto use the Qt documentation successfully.

2010-09-16 Thread Algis Kabaila
On Tuesday 14 September 2010 19:08:23 Hans-Peter Jansen wrote: > Just a few words on methology: > > Searching for some functionality of QTextEdit, e.g. how to get at a > specific line via line number: > * Look up QTextEdit in assistant >We read: The QTextEdit class provides a widget that is u

[PyQt] KConfigSkeleton and pyqt4 API version 2

2010-09-16 Thread Wolfgang Rohdewald
Hi, this code prints random output. How should I fix this? import sip sip.setapi('QString', 2) from PyKDE4.kdeui import KConfigSkeleton a = KConfigSkeleton() name = 'tilesetName' value = 'I am a value' s = a.addItemString(name, value) print s.value() == output: == value is: 䱀Ɨ!䱠Ɨ彐Ɨ美繈

[PyQt] QsciAPIs usage

2010-09-16 Thread dusan smitran
Has anyone got a good example on how to use the QsciApi module? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Advice for thread/process output logging, Windows debugging

2010-09-16 Thread Erik Janssens
Hello Steve, We've ran in more or less the same issues with the recent refactoring of Camelot, here are some things I learned (but I haven't found a decent solution yet) : - those kind of bugs tend to appear more frequent on windows than on Linux, I don't know why. But they happen on Linux

Re: [PyQt] Image type RAW destroyed by PyQt

2010-09-16 Thread Vincent Vande Vyvre
Le 16/09/10 12:59, Dan Halbert a écrit :  On 9/16/2010 4:02 AM, Vincent Vande Vyvre wrote: If an image is type RAW, (.CR2, .RAF, .3FR, .MRW etc) an image format .tiff is automatically created and replace the RAW file. The original file is lost. Could you give a short test prog

[PyQt] Advice for thread/process output logging, Windows debugging

2010-09-16 Thread Steve Borho
Before I get to my questions, I want to congratulate you folks for such a tremendous toolkit. I can only imagine how much further along TortoiseHg would be today if we had selected PyQt from the start (which was my suggestion at the time). Our port from PyGtk is progressing very well, but we've

Re: [PyQt] Newbie QMainWindow tips

2010-09-16 Thread fpp
On Thu, Sep 16, 2010 at 7:46 PM, Eric Frederich wrote: > > I think that seems to be my problem. > Just way too many ways to skin this cat. > I'd hate to say something good about Java (especially now that they're owned > by Orable) but there were much less options for me to get overwhelmed with. >

Re: [PyQt] Newbie QMainWindow tips

2010-09-16 Thread Eric Frederich
On Thu, Sep 16, 2010 at 1:27 PM, fpp wrote: > On Thu, Sep 16, 2010 at 7:24 PM, Eric Frederich > wrote: > > > > So if I connect the tab bar's currentChanged(int) signal to a dock > widget's > > method, where does the dock widget get the data from? > > Would the dock widget instance need to have a

[PyQt] Fwd: Newbie QMainWindow tips

2010-09-16 Thread fpp
Sorry, did it again ! :-) -- Forwarded message -- From: fpp Date: Thu, Sep 16, 2010 at 7:27 PM Subject: Re: [PyQt] Newbie QMainWindow tips To: Eric Frederich On Thu, Sep 16, 2010 at 7:24 PM, Eric Frederich wrote: > > So if I connect the tab bar's currentChanged(int) signal to

Re: [PyQt] Newbie QMainWindow tips

2010-09-16 Thread Eric Frederich
On Thu, Sep 16, 2010 at 11:55 AM, fpp wrote: > On Thu, Sep 16, 2010 at 5:02 PM, Eric Frederich > wrote: > > Trying to get my first PyQt MainWindow application going. > > Its going to be to edit multiple [we'll just call them] documents in > tabs. > > I will have several dockwidgets that need to

Re: [PyQt] Basic SIP

2010-09-16 Thread zhang jian
Hi, I am a beginner as well. May be helpful to check my step-by-step note about the hello SIP tst: http://cid-a6597afda81373ba.spaces.live.com/blog/cns!A6597AFDA81373BA!1260.entry It is on Mac though, but I think it should work on Windows, just need to set the VC projects. zhang On Thu, Sep 16

[PyQt] Newbie QMainWindow tips

2010-09-16 Thread Eric Frederich
Trying to get my first PyQt MainWindow application going. Its going to be to edit multiple [we'll just call them] documents in tabs. I will have several dockwidgets that need to correspond to the currently selected tab. So when the tab changes, or the data within the document changes, several dock

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 15:57:07 Von wrote: > Hi,Armando thanks for your advice,it seems more complicated. > I wonder is there a simple way to resolve it? You might want to try PyInstaller, that has a better dependency resolution. Pete ___ PyQt m

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Von
Hi,Armando thanks for your advice,it seems more complicated. I wonder is there a simple way to resolve it? On Thu, Sep 16, 2010 at 9:16 PM, "V. Armando Solé" wrote: > Hi Von, > > > On 16/09/2010 08:38, Von wrote: > >> Hi, >> Here is my command: >> cxfreeze --target-dir=AutoOrder gui.py >> --bas

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Von
I did import the rc file in the Main.py and use cxfreeze --include-module option to include the rc module I made a gui bundle,so there wasn't any dos output. On Thu, Sep 16, 2010 at 8:32 PM, Hans-Peter Jansen wrote: > On Thursday 16 September 2010, 13:30:28 Von wrote: > > Hi Hans,strange thing h

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread V. Armando Solé
Hi Von, On 16/09/2010 08:38, Von wrote: Hi, Here is my command: cxfreeze --target-dir=AutoOrder gui.py --base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe --include-path=. -z icon.jpg Both app icon and tray icon used icon.jpg Regards, I had similar problems in the pas

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 13:30:28 Von wrote: > Hi Hans,strange thing happens > I put my icon.jpg file into the qrc file and compile it to py file.when I > run my Main.py directly I can see the icon show up correctly,but while I > use cxfreeze to package it,then it can't find the resource at a

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Von
Hi Hans,strange thing happens I put my icon.jpg file into the qrc file and compile it to py file.when I run my Main.py directly I can see the icon show up correctly,but while I use cxfreeze to package it,then it can't find the resource at all.Here is my simple code: pixmap = QtGui.QPixmap(":/icon.j

Re: [PyQt] Image type RAW destroyed by PyQt

2010-09-16 Thread Dan Halbert
On 9/16/2010 4:02 AM, Vincent Vande Vyvre wrote: If an image is type RAW, (.CR2, .RAF, .3FR, .MRW etc) an image format .tiff is automatically created and replace the RAW file. The original file is lost. Could you give a short test program that reproduces the problem? Sounds like it only needs

Re: [PyQt] Why am I missing a mouseRelease event in QWidget and QGLWidget?

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 10:52:10 HundredsAnd100s wrote: > I'm new to both PyQt and Qt, so apologies if this is obvious. I'm trying > to track mouse events with a QGLWidget but it's not working quite like > expected. I switched to a QWidget to avoid any possible complications but > the proble

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Von
Hi,Hans I join this group today,could you send your example mail to me? On Thu, Sep 16, 2010 at 6:23 PM, Hans-Peter Jansen wrote: > On Thursday 16 September 2010, 08:38:00 Von wrote: > > Hi, > > Here is my command: > > cxfreeze --target-dir=AutoOrder gui.py > > --base-name=D:\Python31\Lib\site-p

Re: [PyQt] python cxfreeze package pyqt app lost icon and tray icon

2010-09-16 Thread Hans-Peter Jansen
On Thursday 16 September 2010, 08:38:00 Von wrote: > Hi, > Here is my command: > cxfreeze --target-dir=AutoOrder gui.py > --base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe > --include-path=. -z icon.jpg I haven't used cx_freeze, but why don't you wrap them into a python module

[PyQt] Why am I missing a mouseRelease event in QWidget and QGLWidget?

2010-09-16 Thread HundredsAnd100s
I'm new to both PyQt and Qt, so apologies if this is obvious. I'm trying to track mouse events with a QGLWidget but it's not working quite like expected. I switched to a QWidget to avoid any possible complications but the problem remains. I want to recognize that one or more mouse buttons are bei

[PyQt] Basic SIP

2010-09-16 Thread Mico Siahaan
Dear all, I am learning SIP and I made simple source like this: //spam.cpp #include "spam.h" int spam_system(const char *command); int main(int argc, char **argv ) { spam_system(argv[1]); return 0; } int spam_system(const char *command) { int sts; sts = system(command); return sts; } spam.h

[PyQt] QSortFilterProxyModel with 'fixed' item

2010-09-16 Thread Saúl Ibarra Corretgé
Hi all, I'm currently using a subclass of QSortFilterProxyModel to populate a QComboBox. This is working fine, but I'd like to have a 'fixed' entry in this combo box. This entry is not present on the proxy model nor on the source model, it guess it has to be 'invented' by the proxy model so it's d

[PyQt] Image type RAW destroyed by PyQt

2010-09-16 Thread Vincent Vande Vyvre
Hi, In an application, i have a function which create a thumbnail for each image found in a folder. If an image is type RAW, (.CR2, .RAF, .3FR, .MRW etc) an image format .tiff is automatically created and replace the RAW file. The original file is lost. However, if I check the supported form