[PyQt] Shutting down an interpreter that has loaded PyQt

2009-02-18 Thread Paul A. Giannaros
I'm hosting a Python interpreter in a Qt app and importing PyQt. That works great. I can unload the interpreter using Py_Finalize and then unload the Python library by calling unload() but straight after doing so the application crashes[1]. Why isn't PyQt4/QtCore.so being unloaded properly, and how

[PyQt] Cleaning up when unloading embedded Python + PyQt

2008-12-18 Thread Paul A. Giannaros
I have a plugin that is loaded and unloaded by a KDE-based application on will. The plugin hosts Python and exposes the application's interface to Python scripts. I'm having a problem with a crash when unloading the plugin. From the traceback[1] it looks like events are being routed to PyQt even th

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
On Fri, Dec 12, 2008 at 10:28 PM, Giovanni Bajo wrote: > On 12/12/2008 11:18 PM, Paul A. Giannaros wrote: >> >> On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson >> wrote: >>> >>> On Fri, 12 Dec 2008 18:09:56 +, "Paul A. Giannaros" >>

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
On Fri, Dec 12, 2008 at 9:17 PM, Marcell Mars wrote: > On Fri, Dec 12, 2008 at 7:09 PM, Paul A. Giannaros wrote: >> Any thoughts on this? > > do you want to do something like: > > import PyQt4.QtCore as Qt > import PyQt4.QtGui also as Qt Sort of. It's mainly about

Re: [PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
On Fri, Dec 12, 2008 at 6:27 PM, Phil Thompson wrote: > > On Fri, 12 Dec 2008 18:09:56 +0000, "Paul A. Giannaros" > wrote: > > Hi all, > > > > When there was a discussion regarding PyQt wishes for Python 3.0 I > > proposed changing the mechanism

[PyQt] Symbol naming system for PyQt under Python 3

2008-12-12 Thread Paul A. Giannaros
Hi all, When there was a discussion regarding PyQt wishes for Python 3.0 I proposed changing the mechanism by which you refer to symbols[1] . Thus something like "QtGui.QApplication" could be refered to as "Qt.Application". As Qt does not use namespaces itself, there would be no conflicts of names

[PyQt] QTextEdit "self adjustable"

2008-11-21 Thread Paul A. Giannaros
() > font_metrics = QFontMetrics(font).size(0, self.lyricsEdit.toPlainText()) > > > > app = QApplication(sys.argv) > qb = QuitButton() > qb.show() > sys.exit(app.exec_()) And what went wrong? Please provide more information, and please don't top post. > >

Re: [PyQt] Shadow in Text

2008-11-07 Thread Paul A. Giannaros
On Fri, Nov 7, 2008 at 1:34 PM, celsowm <[EMAIL PROTECTED]> wrote: > > How is the best way to put shadow in text. > I tried this: http://trolltech.com/developer/faqs/faq.2007-07-27.3052836051 > I tried this ... but it was not good What do you mean by "it was not good"? It did not look good? If so

Re: [PyQt] Python or Qt/C++ property style

2008-11-07 Thread Paul A. Giannaros
On Fri, Nov 7, 2008 at 11:24 AM, Georg Altmann <[EMAIL PROTECTED]> wrote: > Hello, > > I am thinking about wether I should use python properties in my code. As > PyQt is currently following Qt style (getter: property(), setter: > getProperty()), I am a bit undecided. > > Benefits of python properti

Re: [PyQt] PyQt Development Roadmap Published

2008-10-20 Thread Paul A. Giannaros
On Mon, Oct 20, 2008 at 12:28 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > I've published a development roadmap for PyQt at > http://www.riverbankcomputing.com/software/pyqt/roadmap. Great to see it all composed together. There's a minor bug in the example that creates a signal that uses string

Re: [PyQt] PyQt4 and Python 3.0

2008-10-03 Thread Paul A. Giannaros
On Fri, Oct 3, 2008 at 9:59 PM, Mark Summerfield <[EMAIL PROTECTED]> wrote: > On 2008-10-03, Paul A. Giannaros wrote: >> On Fri, Oct 3, 2008 at 5:08 PM, Mark Summerfield <[EMAIL PROTECTED]> wrote: >> > On 2008-10-03, Phil Thompson wrote: >> >> On Fri, 3

Re: [PyQt] PyQt4 and Python 3.0

2008-10-03 Thread Paul A. Giannaros
On Fri, Oct 3, 2008 at 5:08 PM, Mark Summerfield <[EMAIL PROTECTED]> wrote: > On 2008-10-03, Phil Thompson wrote: >> On Fri, 3 Oct 2008 17:11:19 +0200, Detlev Offenbach > Here's my personal "wish list" for Python 3/PyQt4 (including those that > Phil is going to do as he says above): > > - No QStrin

Re: [PyQt] A question about QImage

2008-09-21 Thread Paul A. Giannaros
No copies of objects are ever made in Python using the assignment operator (generally speaking at least... attribute access is a different can of fish). Unlike in other programming languages you cannot modify the functionality of the assignment operator. It simply binds names to variables; that is

Re: [PyQt] Painting an arc... can't be that hard?

2008-09-05 Thread Paul A. Giannaros
On Fri, Sep 5, 2008 at 7:47 PM, Scott Price <[EMAIL PROTECTED]> wrote: > So, using PyQt4/WindowsXP: > > I'm attempting to adapt the basic drawing example for the simple purpose of > drawing an arc on the background of a widget. The following code opens a > main window with a child widget inside, b