[PyQt] Re: Re: Any Large PyQt Projects?

2009-02-24 Thread Toby Dickenson
Chris Withers wrote: Toby Dickenson wrote: * Plan to have a splash screen with a progress bar :-( How do you do this with PyQt? Obviously you need to show the splash screen widget before importing the majority of your application code. The import statement is usually seen at the top

[PyQt] Re: Any Large PyQt Projects?

2009-02-20 Thread Toby Dickenson
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++. Hi, I'm lead developer for a 50kloc PyQt project. Comparing this to

[PyQt] Re: About Focus Rect on widgets

2008-04-09 Thread Toby Dickenson
Hans Meine wrote: IMO such things should not be done by any app; this is a style issue AFAICS. Every user should be able to decide himself whether he wants focus rects or not (some people might even need them). In my experience any code overriding a style should first check the name of the

[PyKDE] Re: Qt3 Clipboard Problem

2006-09-12 Thread Toby Dickenson
Doug Bell wrote: Hi, My application uses QClipboard's setText function (not in selection mode) for copied text. It works fine while the app is running, but the clipboard is always empty after exiting the application. This occurs on both Linux (PyQt 3.16 and Qt 3.3.6) and Windows (Qt

Re: [PyKDE] twisted and PyQt4

2006-06-01 Thread Toby Dickenson
is Twisted's ThreadedSelectReactor. (I forget whether this is released now, or whether you need to grab it from SVN). -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Documentation

2005-11-02 Thread Toby Dickenson
easily applies equally well to Python. There are some areas where the PyQt API extends beyond C++. These are described well, with examples, at http://www.opendocs.org/pyqt/ -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

Re: [PyKDE] PyQt C API

2005-10-21 Thread Toby Dickenson
approachable and more explainable. More work for me up front, but less over the whole lifetime of this product. -- Toby Dickenson Important Notice: This email and any attachments are confidential and may contain trade secrets or be legally privileged. If you have

Re: [PyKDE] QString in PyQt4 - Request for Comments

2005-10-21 Thread Toby Dickenson
++ is forced to use). -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt C API

2005-10-19 Thread Toby Dickenson
isnt the PyQt code itself, but rather the next layer up, which calls PyQt. It will be much more convenient for this C (or C++, or pyrex) code to call the Qt C++ API directly. -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http

[PyKDE] PyQt C API

2005-10-18 Thread Toby Dickenson
I am considering translating a few functions of our large PyQt application to C (or, probably, pyrex) as a performance optimisation, but I have stumbled at the first hurdle. How do you convert a PyObject pointer to a PyQt object into a pointer to the Qt C++ object? Thanks in advance, -- Toby

Re: [PyKDE] branching, PyKDE major versions

2005-07-20 Thread Toby Dickenson
for Qt4 support? -- Toby Dickenson (who still hasnt looked at Qt 4 :-( ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Issue with QDialog and lifetime

2005-07-07 Thread Toby Dickenson
problems. I would be happy to test if there was a patch for existing PyQt versions. -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Issue with QDialog and lifetime

2005-05-26 Thread Toby Dickenson
support for this. http://www.python.org/peps/pep-0343.html -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Issue with QDialog and lifetime

2005-05-26 Thread Toby Dickenson
change should you ever need to access the dialog after it has been closed. (or, more likely, the value of a control widget on the dialog) You are right that the C++ handles this better than either python solution :-( -- Toby Dickenson ___ PyKDE

Re: [PyKDE] Issue with QDialog and lifetime

2005-05-26 Thread Toby Dickenson
On Thursday 26 May 2005 13:16, Giovanni Bajo wrote: Toby Dickenson [EMAIL PROTECTED] wrote: class QDialog2(QDialog): def __init__(self, parent=0, name=0, modal=False, flags=0) QDialog.__init__(self, parent, name, modal, flags | Qt.WDestructiveClose) Actually, for my project

Re: [PyKDE] problem with exceptions within events

2005-02-24 Thread Toby Dickenson
here with sip 4.0.1, PyQt 3.1.2, qt 3.3.3 I would expect the exception raised by the event handler to call our custom excepthook just like other exceptions raised in different contexts, but it would be fine if it *just* printed something on the console. Agreed. -- Toby Dickenson error.py

Re: [PyKDE] PyQt v4 Roadmap

2005-02-18 Thread Toby Dickenson
approach might not be so bad if python supported something like from qt import Q* but it doesnt ;-( Are you really saying that qtsql.QDateTable is more readable than QDateTable? I totally disagree Our coding standard would use from qtsql import QDateTable, then use the name as you do. -- Toby

Re: [PyKDE] PyQt v4 Roadmap

2005-02-17 Thread Toby Dickenson
will be supported to ;-) A self-installing binary package, with the Qt libraries statically linked Is there a reason for being statically linked? Thats a complication for third party python modules that use the C++ Qt API, and want to play nicely with PyQt -- Toby Dickenson

Re: [PyKDE] Clipboard Problem

2005-01-14 Thread Toby Dickenson
is wonderful, but sometimes I seem to hit their bit bucket :-( I hope this helps -- Toby Dickenson ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Toby Dickenson
with QWidgetFactory inty our python application? For the occasional custom widget on a pyuic form we either insert an empty QFrame and manually create the widget inside it, or insert a QLabel placeholder that gets manually replaced. All stoneage stuff I guess -- Toby Dickenson

[PyKDE] migrating to sip 4

2004-09-16 Thread Toby Dickenson
We have just finished migrating a large application from PyQt 3.8.1, sip 3.8, and python 2.2 - to version 3.12, 4, and 2.3. Upgrading those tools has caused us _zero_ issues so far. Thats the right way to manage change. Many thanks to all who have contributed. -- Toby Dickenson

Re: [PyKDE] Singleshot problems in QThreads on Windows.

2004-08-20 Thread Toby Dickenson
/008364.html -- Toby Dickenson ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] PyQt 3.12 introduces deadlock with QCustomEvent's destructor.

2004-08-17 Thread Toby Dickenson
On Monday 16 August 2004 18:51, Phil Thompson wrote: On Monday 16 August 2004 5:43 pm, Toby Dickenson wrote: On Monday 16 August 2004 17:09, Truls A. Tangstad wrote: It's a hard pill to swallow though, since this means our application will have to be infected with Qt in layers not at all

Re: [PyKDE] PyQt 3.12 introduces deadlock with QCustomEvent's destructor.

2004-08-17 Thread Toby Dickenson
using python's Queue.Queue. In that thread we create a QCustomEvent to hold the data, and postEvent it into the gui thread. We have only ever seen repeatable crashes on one machine. I will test there tomorrow. I feel dirty. -- Toby Dickenson

Re: [PyKDE] Runtime Error

2004-07-01 Thread Toby Dickenson
On Thursday 01 July 2004 12:07, you wrote: On Thursday 01 July 2004 11:43 am, Toby Dickenson wrote: In sip 3.8 and PyQt 3.8.1 qt.QStyleFactory.create('style that does not exist') Traceback (most recent call last): File stdin, line 1, in ? RuntimeError: Attempt to create

Re: [PyKDE] Designer

2004-05-20 Thread Toby Dickenson
code every time? Create a new file containing a new class, with the pyuic-generated class as a base class. Add your method to this new class. To use it, create instances of the new class. Dont directly create instances of the pyuic-generated class. I hope that helps. -- Toby Dickenson

Re: [PyKDE] Looping over QLabels

2004-03-23 Thread Toby Dickenson
QLabel.setText('') Instead of having to do this: QLabel1.setText('') QLabel2.setText('') QLabel3.setText('') for label in (self.label1, self.label2, self.label3): label.setText('') -- Toby Dickenson ___ PyKDE mailing list[EMAIL PROTECTED

Re: [PyKDE] PyQt application packagers for windows?

2004-01-22 Thread Toby Dickenson
://www.mcmillan-inc.com/install1.html -- Toby Dickenson ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[PyKDE] disconnecting PYSIGNAL

2003-11-03 Thread Toby Dickenson
would make the problem go away a.emit(PYSIGNAL('aaa'),()) -- Toby Dickenson ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] event filters

2003-10-16 Thread Toby Dickenson
On Wednesday 15 October 2003 19:12, Phil Thompson wrote: On Wednesday 15 October 2003 6:52 pm, Toby Dickenson wrote: On Wednesday 15 October 2003 18:14, Phil Thompson wrote: See what happens if you comment out the event() method. No different :-( Thats how it started out, only I

[PyKDE] event filters

2003-10-15 Thread Toby Dickenson
',ob,ev,'but Ive never seen this working' return 0 def event(self,ev): print 'event',ev return 0 app = QApplication([]) f1 = F() f2 = F() f1.installEventFilter(f2) app.sendEvent(f1,QCustomEvent(QEvent.User)) -- Toby Dickenson

Re: [PyKDE] event filters

2003-10-15 Thread Toby Dickenson
On Wednesday 15 October 2003 17:46, Phil Thompson wrote: On Wednesday 15 October 2003 5:40 pm, Toby Dickenson wrote: Im not seeing event filters work how I expected. In the following script I am seeing the 'event' line but *never* the 'filter' line. PyQt 3.8, qt 3.1.2, on windows and X

Re: [PyKDE] event filters

2003-10-15 Thread Toby Dickenson
On Wednesday 15 October 2003 18:14, Phil Thompson wrote: See what happens if you comment out the event() method. No different :-( Thats how it started out, only I wanted confirmation I was sending the event right. -- Toby Dickenson ___ PyKDE