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
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
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
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
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
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
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
++ is forced to use).
--
Toby Dickenson
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
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
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
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
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
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
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
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
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
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
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
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
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
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
/008364.html
--
Toby Dickenson
___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
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
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
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
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
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
://www.mcmillan-inc.com/install1.html
--
Toby Dickenson
___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
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
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
',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
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
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
33 matches
Mail list logo