Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Erik Janssens
Hi, In my experience the big challenge with large applications with lots of computations is to keep them responsive. This is difficult in either C++ or python. I've run in a lot of difficulties in the past with a large C++ QT app. When you want your application to be multithreaded, you should d

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Frédéric
On vendredi 20 février 2009, Stef Mientki wrote: > > I'm looking for examples from people who have written large PyQt > > applications and I would like to hear your opinions on what worked > > well and what did not specifically with choosing python over C/C++.   > > In particular, how does your py

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Kovid Goyal
I'm the lead developer of calibre (http://calibre.kovidgoyal.net) which is ~120k lines of python + another few thousand lines of C code. I've found in general that you can quite easily use multi-processing instead of multi-threading to get around the global interpreter lock (this assumes that yo

[PyQt] QSvgRenderer, setCurrentFrame

2009-02-19 Thread Matt Smith
I was playing around with the SvgRenderer and I found if I did setCurrentFrame(some_numer) I was immediately put on the last frame, and the frame wouldn't change. The repaintNeeded() signal was still being emitted. I am merely curious I probably will work with graphics scene in the end but svg ou

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Stef Mientki
Miguel Lobo wrote: I'm also interested in this, but from a different angle. For large projects, how much of a problem is the lack of static checks of the kind that would be performed by a C/C++ compiler? For example, if you want to add a new parameter to a method, or change a parameter's type,

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Stef Mientki
Brent Villalobos wrote: I'm looking for examples from people who have written large PyQt applications and I would like to hear your opinions on what worked well and what did not specifically with choosing python over C/C++. In particular, how does your python application handle tasks that req

Re: [PyQt] Any Large PyQt Projects?

2009-02-19 Thread Miguel Lobo
I'm also interested in this, but from a different angle. For large projects, how much of a problem is the lack of static checks of the kind that would be performed by a C/C++ compiler? For example, if you want to add a new parameter to a method, or change a parameter's type, is it a problem to id

[PyQt] Any Large PyQt Projects?

2009-02-19 Thread Brent Villalobos
I'm looking for examples from people who have written large PyQt applications and I would like to hear your opinions on what worked well and what did not specifically with choosing python over C/C++. In particular, how does your python application handle tasks that require a lot of computation

Re: [PyQt] PyKDE segfaults when calling group() on KSharedConfig object

2009-02-19 Thread Benno Dielmann
Hi Simon, thanks for looking into this. KGlobal.config() does the thing so far. Maybe you should mention about KSharedConfig not working in the PyKDE docs. At the moment they actually seem to recommend using it: http://api.kde.org/pykde-4.1-api/kdecore/KConfig.html says "In general it is rec

Re: [PyQt] PyKDE segfaults when calling group() on KSharedConfig object

2009-02-19 Thread Andreas Pakulat
On 19.02.09 21:54:59, Simon Edwards wrote: > Hi, > > Benno Dielmann wrote: >> thanks, Simon, for looking into this and in general for your great work >> on PyKDE :-). >> >> I'm using KGlobal.config() in my application now. What is the >> difference between this and KSharedConfig.openConfig()? Wh

Re: [PyQt] PyKDE segfaults when calling group() on KSharedConfig object

2009-02-19 Thread Simon Edwards
Hi, Benno Dielmann wrote: thanks, Simon, for looking into this and in general for your great work on PyKDE :-). I'm using KGlobal.config() in my application now. What is the difference between this and KSharedConfig.openConfig()? What is the preferred way of getting access to the configurati

Re: [PyQt] Scripting framework and licensing

2009-02-19 Thread David Boddie
On Thu Feb 19 10:55:59 GMT 2009, Ulrich Berning wrote: > From paragraph 11 of the Qt commercial license agreement version 3.5 > (qt-x11-commercial-src-4.4.1/.LICENSE): > > - > (vii) Applications may not pass on functionality which in any way makes > it possible for others to create software w

Tr: [PyQt] Problems with QSystemTrayIcon

2009-02-19 Thread projetmbc
I'm under Windows XP with PyQt for Python 2-6 and your example works very well. I see the icon in the SysTray with the message. Christophe. >Hi, > >I am having problem to get QSystemTrayIcon to work. I am running on >windows XP and I never see any notification messages. > >My setup: windows XP,

Re: [PyQt] Problems with QSystemTrayIcon

2009-02-19 Thread Sundance
Philippe Fremy wrote: > I am having problem to get QSystemTrayIcon to work. I am running on > windows XP and I never see any notification messages. > > My setup: windows XP, PyQt 4.3.3, python 2.5 Hi Philippe, Your code looks fine to me, and works fine here on Linux (Qt 4.4.3, PyQt 4.4.4). Acc

Re: [PyQt] Scripting framework and licensing

2009-02-19 Thread Chris Withers
Giovanni Bajo wrote: http://code.activestate.com/recipes/496746/ The RestrictedPython package is probably a more robust and maintained version of this... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

[PyQt] Problems with QSystemTrayIcon

2009-02-19 Thread Philippe Fremy
Hi, I am having problem to get QSystemTrayIcon to work. I am running on windows XP and I never see any notification messages. My setup: windows XP, PyQt 4.3.3, python 2.5 See my attached simplified code, that runs standalone. Any idea what I could be doing wrong ? cheers, Philippe <># -*- c

Re: [PyQt] Scripting framework and licensing

2009-02-19 Thread Ulrich Berning
Simon Hibbs wrote: I understand that user-written Python scripts in a commercial PyQT application isn't allowable as it makes them effectively developers. That's a pity but completely understandable. However does this also apply to using the QT scripting framework? It would be useful to enab

Re: [PyQt] Scripting framework and licensing

2009-02-19 Thread Giovanni Bajo
On Thu, 19 Feb 2009 09:20:03 +, Simon Hibbs wrote: > I understand that user-written Python scripts in a commercial PyQT > application isn't allowable as it makes them effectively developers. That's > a pity but completely understandable. > > However does this also apply to using the QT scrip

[PyQt] Scripting framework and licensing

2009-02-19 Thread Simon Hibbs
I understand that user-written Python scripts in a commercial PyQT application isn't allowable as it makes them effectively developers. That's a pity but completely understandable. However does this also apply to using the QT scripting framework? It would be useful to enable users to write their o