Re: [PyQt] PyQt: tr() or translate()

2009-07-22 Thread Hans-Peter Jansen
Am Mittwoch, 22. Juli 2009 schrieb Michał Klich: > Hi, > > I would like to get some calrification on tr() and translate(). > On webpage > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#inter >nationalisation-of-pyqt-applicationsi found information that it is better > to use > Q

Re: [PyQt] Re: Very slow Eric editor on large files

2009-07-22 Thread Mario Daniel Carugno
I guess Eric is a complex application, and Python is not the best option to write applications to run fast (Eric is written in Python as you probably know). I don't like Eric for that reason. Use kate or a better editor, VIM ;-) Good luck === >>> Mario D Carugno <<< ===

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-22 Thread Matt Newell
On Wednesday 22 July 2009 14:12:11 Brent Villalobos wrote: > Erik Janssens wrote: > > If you interface to C code within your validation, does the interface > > release the GIL ? > > Unfortunately I'm not much of a C person. How do I check if the GIL has > been released? sip/PyQt is very aggressi

[PyQt] Re: Very slow Eric editor on large files

2009-07-22 Thread Gustavo A . Díaz
Well, i am observing that is happening whatever is small or big file... i've created a exaple of just spaces and scroll and typing is so slow.. and i have a quad core CPU... thats impossible... 2009/7/22 Gustavo A. Díaz > Hi, > > I've noticed that Eric editor is very slow on large files, and is

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-22 Thread Brent Villalobos
Erik Janssens wrote: If you interface to C code within your validation, does the interface release the GIL ? Unfortunately I'm not much of a C person. How do I check if the GIL has been released? ___ PyQt mailing listPyQt@riverbankcomputing.co

[PyQt] GUI freezing when running large function in QThread

2009-07-22 Thread Erik Janssens
I'm doing exactly the same in our application (Validation and database access in a separate thread), and I have no issues whatsoever with the GUI still freezing. So I'm not sure either if the GIL is causing this and if you really need to spawn another process (given the additional issues this br

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Diez B. Roggisch
I missed your call to sipFindClass(). It's almost certainly a bug in your handwritten code somewhere - not necessarily in the code above. ok, I'm feeling stupid now. But after building sip with debug enabled, and stepping into the conversion-call, I found that the problem was that the error

[PyQt] Very slow Eric editor on large files

2009-07-22 Thread Gustavo A . Díaz
Hi, I've noticed that Eric editor is very slow on large files, and is very anoying to write code... even Kate is faster. What could be the problem? I am using latest stable Eric (but i think this always happen) and latest stable PyQt, sip, QScintilla. Cheers. -- Gustavo A. Díaz GDNet Projects

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Diez B. Roggisch
Phil Thompson schrieb: On Wed, 22 Jul 2009 20:13:45 +0200, "Diez B. Roggisch" wrote: Phil Thompson schrieb: On Tue, 21 Jul 2009 11:07:19 +0200, "Diez B. Roggisch" wrote: On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, "Diez B. Roggisch" wrote: Hi

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Phil Thompson
On Wed, 22 Jul 2009 20:13:45 +0200, "Diez B. Roggisch" wrote: > Phil Thompson schrieb: >> On Tue, 21 Jul 2009 11:07:19 +0200, "Diez B. Roggisch" >> wrote: >>> On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, "Diez B. Roggisch" wrote: >

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-22 Thread Diez B. Roggisch
Phil Thompson schrieb: On Tue, 21 Jul 2009 11:07:19 +0200, "Diez B. Roggisch" wrote: On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, "Diez B. Roggisch" wrote: Hi, well, the subject pretty much says it. The below code exectutes fine in the debugge

[PyQt] PyQt: tr() or translate()

2009-07-22 Thread Michał Klich
Hi, I would like to get some calrification on tr() and translate(). On webpage http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#internationalisation-of-pyqt-applicationsi found information that it is better to use QCoreApplication.translate() instead of tr(). Looks like QT Desig

Re: [PyQt] PyQt v4.5.2 QVariant woes

2009-07-22 Thread Hans-Peter Jansen
Hi Phil, sorry for the delay.. Am Montag, 20. Juli 2009 schrieb Phil Thompson: > On Sun, 19 Jul 2009 18:35:24 +0200, "Hans-Peter Jansen" > > wrote: > > Hi Phil, > > > > after updating to 4.5.2, I suffer from a new issue, which is rather > > basic. > > > According to the changelog, you modified Q

[PyQt] Odd behaviour in QFileDialog.getOpenFileNames on Linux [workaround]

2009-07-22 Thread Jens Nie
Hey all. > I am working on a little helper for my job management system to insert jobs > into it using a PyQt GUI that should be > usable on both windows and linux. > I came over a rather odd behavior for the QFileDialog.getOpenFileNames method > when running that helper under linux. > Select

Re: [PyQt] Which QStyle

2009-07-22 Thread Mads Ipsen
Matt Newell wrote: On Tuesday 21 July 2009 13:46:09 Mads Ipsen wrote: How do I programatically determine which style I am using, i.e. whether it's QWindowsStyle, QMacStyle, QMotifStyle etc. style = QApplication.instance().style() print style.metaObject().className() Matt Thanks.