Re: [PyQt] A dire warning message

2011-07-08 Thread Algis Kabaila
On Fri, 8 Jul 2011 01:37:35 PM Baz Walter wrote: On 08/07/11 02:36, Algis Kabaila wrote: On Fri, 8 Jul 2011 03:36:40 AM Baz Walter wrote: you would need to reboot for it to have an effect, as the plugin would still be loaded in memory. in any case, it's not a real solution to your

Re: [PyQt] SIP: newbie question 3

2011-07-08 Thread Johan Råde
On 2011-07-07 09:16, Johan Råde wrote: Thanks for all the help! Here is a 3rd and last question. Once I have figured this one out, I will be done porting my project from boost.python to SIP. I need to translate C++ exceptions to Python exceptions. I have a function that does that: void

Re: [PyQt] SIP: newbie question 3

2011-07-08 Thread Sébastien Petitdemange
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Johan, On 07/08/2011 09:58 AM, Johan Råde wrote: I tried adding the following directive to my sip file, but it seems to have no effect. There is still a crash when an exception is thrown in the C++ code. %Exception std::exception {

Re: [PyQt] A dire warning message

2011-07-08 Thread Hans-Peter Jansen
On Friday 08 July 2011, 08:07:16 Algis Kabaila wrote: On Fri, 8 Jul 2011 01:37:35 PM Baz Walter wrote: On 08/07/11 02:36, Algis Kabaila wrote: On Fri, 8 Jul 2011 03:36:40 AM Baz Walter wrote: you would need to reboot for it to have an effect, as the plugin would still be loaded in

Re: [PyQt] A dire warning message

2011-07-08 Thread Hans-Peter Jansen
On Friday 08 July 2011, 02:01:46 Algis Kabaila wrote: @Pete - I really do appreciate your helpful comments. It is people like you that keep me interested in software issues at the sunset of my life (as my even older sister says - I don't mind dying, just not today - and not tomorrow):)

Re: [PyQt] SIP: newbie question 3

2011-07-08 Thread Johan Råde
On 2011-07-08 10:13, Sébastien Petitdemange wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Johan, On 07/08/2011 09:58 AM, Johan Råde wrote: I tried adding the following directive to my sip file, but it seems to have no effect. There is still a crash when an exception is thrown in the

Re: [PyQt] A dire warning message

2011-07-08 Thread Algis Kabaila
On Fri, 8 Jul 2011 06:18:53 PM Hans-Peter Jansen wrote: On Friday 08 July 2011, 08:07:16 Algis Kabaila wrote: On Fri, 8 Jul 2011 01:37:35 PM Baz Walter wrote: On 08/07/11 02:36, Algis Kabaila wrote: On Fri, 8 Jul 2011 03:36:40 AM Baz Walter wrote: you would need to reboot for it to

Re: [PyQt] SIP: newbie question 3

2011-07-08 Thread Jens Thoms Toerring
On Fri, Jul 08, 2011 at 10:13:04AM +0200, Sébastien Petitdemange wrote: On 07/08/2011 09:58 AM, Johan Råde wrote: I tried adding the following directive to my sip file, but it seems to have no effect. There is still a crash when an exception is thrown in the C++ code. Try this:

Re: [PyQt] A dire warning message

2011-07-08 Thread Raoul Snyman
On Fri, 8 Jul 2011 19:00:52 +1000, Algis Kabaila wrote: I think it is time to give it rest, unless someone can suggest antother lead. The fun of it begins to feel like bashing one's head against a wall. After all I can live with the dire warning message. I don't know why this thread has

Re: [PyQt] SIP: newbie question 3

2011-07-08 Thread Johan Råde
On 2011-07-08 11:06, Jens Thoms Toerring wrote: Another point that may interfere: do you run SIP with the '-e' option? Thank you Jens. That solved the problem. (It seems a bit old-fashioned that support for exceptions is not enabled by default, but since Qt does not use exceptions it is

Re: [PyQt] A dire warning message

2011-07-08 Thread Algis Kabaila
On Fri, 8 Jul 2011 07:22:04 PM Raoul Snyman wrote: On Fri, 8 Jul 2011 19:00:52 +1000, Algis Kabaila wrote: I think it is time to give it rest, unless someone can suggest antother lead. The fun of it begins to feel like bashing one's head against a wall. After all I can live with the dire

Re: [PyQt] PyQt Digest, Vol 84, Issue 13

2011-07-08 Thread vinay rao
Can I get a detailed explanation of how pyuic uses the qtproxies module? The uiparser module seems to explicitly mention each type of object. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Lic . José M . Rodriguez Bacallao
hi folks, I am creating a composite widget with PyQt4 and Dip, the problem I have is that when I use dip properties for setting PyQt4 properties in the constructor I am getting an error saying that the underlying C++ object has been delete, I think this is due to the way dip works because it call

Re: [PyQt] A dire warning message

2011-07-08 Thread Baz Walter
On 08/07/11 10:22, Raoul Snyman wrote: On Fri, 8 Jul 2011 19:00:52 +1000, Algis Kabaila wrote: I think it is time to give it rest, unless someone can suggest antother lead. The fun of it begins to feel like bashing one's head against a wall. After all I can live with the dire warning message.

[PyQt] Error while building commercial version of PyQt 4.8.4 with Visual Studio 2008

2011-07-08 Thread Sateesh Kumar
Hi, I am using Microsoft Visual Studio 2008 and running Python 2.7. I have installed Qt libraries 4.7.3 for Windows (VS 2008) . I downloaded the commercial version of PyQt (4.8.4) and SIP (4.12.3). The sip configuration and installation went fine. C:\ python Python 2.7 (r27:82525, Jul 4 2010,

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Demetrius Cassidy
You need to call QToolButton's __init__() method. class Indicator(QtGui.QToolButton, Model): def __init__(self) super(Indicator, self).__init__() On Fri, Jul 8, 2011 at 1:49 PM, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: hi folks, I am creating a composite widget with

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Lic . José M . Rodriguez Bacallao
I tried that before and still getting the same error. I thinks is something like the C++ part of the widget is not created at the time when the properties methods are called to set my initial values as this happen before __init__ is called. On Fri, Jul 8, 2011 at 12:05 PM, Demetrius Cassidy

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Darren Dale
http://www.riverbankcomputing.co.uk/static/Docs/dip/model_tutorial.html#models-and-init : The handling of the initial values of attributes is performed by the meta-class of the Model class. This is done before the model’s __init__() method (if there is one) is called. On Fri, Jul 8, 2011 at

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Lic . José M . Rodriguez Bacallao
yes, I know, I read that in the docs, but, how to do something similar to what I want to achieve? On Fri, Jul 8, 2011 at 12:20 PM, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: I tried that before and still getting the same error. I thinks is something like the C++ part of the widget

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Darren Dale
Have you considered trying to decouple your model and view, as described throughout the documentation? On Fri, Jul 8, 2011 at 1:04 PM, Lic. José M. Rodriguez Bacallao jmr...@gmail.com wrote: yes, I know, I read that in the docs, but, how to do something similar to what I want to achieve? On

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Lic . José M . Rodriguez Bacallao
but the view will need to be pure pyqt, not dip? On Fri, Jul 8, 2011 at 1:13 PM, Darren Dale dsdal...@gmail.com wrote: Have you considered trying to decouple your model and view, as described throughout the documentation? On Fri, Jul 8, 2011 at 1:04 PM, Lic. José M. Rodriguez Bacallao

Re: [PyQt] help with dip and PyQt4 widgets

2011-07-08 Thread Darren Dale
Have you seen the discussion at http://www.riverbankcomputing.co.uk/static/Docs/dip/ui_tutorial.html#creating-views-programmatically , or http://www.riverbankcomputing.co.uk/static/Docs/dip/ui_tutorial.html#creating-views-with-qt-designer ? On Fri, Jul 8, 2011 at 1:19 PM, Lic. José M. Rodriguez

Re: [PyQt] A dire warning message

2011-07-08 Thread Algis Kabaila
On Fri, 8 Jul 2011 11:52:17 PM Baz Walter wrote: but to users it can look like a bug if they are running a non-kde app. i re-installed the libkde.so plugin and ran this pure pyqt test script: ## import sys from PyQt4.QtGui import QApplication, QFileDialog, QPushButton class