Re: [PyQt] toPyObject is undocumented

2012-09-17 Thread Phil Thompson
On Mon, 17 Sep 2012 01:37:17 +0200, Wolfgang Rohdewald wolfg...@rohdewald.de wrote: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qvariant.html#toPyObject says nothing about what it does. I just found out it alway returns python long even for small integers. Is that intended or

[PyQt] Help with crash in program

2012-09-17 Thread Vadim Zelenin
Hello All, I got a crash in my program. The situation is very similar to violation of objects ownership and in consequence, illegal destruction of objects or heap corruption. Archive of the program with the bug is attached. This program repeatedly opens and closes the dialog box. Usually crash

[PyQt] QToolBar.visibilityChanged signal missing in PyQt4.9.4

2012-09-17 Thread Chris Beaumont
Hello, The QToolBar.visibilityChanged signal seems to be missing on my recent installation of PyQt4.9.4: In [1]: from PyQt4.QtGui import QApplication, QToolBar In [2]: app = QApplication([]) In [3]: tb = QToolBar() In [4]: tb.visibilityChanged AttributeError: 'QToolBar' object has no attribute

Re: [PyQt] QToolBar.visibilityChanged signal missing in PyQt4.9.4

2012-09-17 Thread Phil Thompson
On Mon, 17 Sep 2012 11:41:39 -0400, Chris Beaumont beaum...@hawaii.edu wrote: Hello, The QToolBar.visibilityChanged signal seems to be missing on my recent installation of PyQt4.9.4: In [1]: from PyQt4.QtGui import QApplication, QToolBar In [2]: app = QApplication([]) In [3]: tb =

[PyQt] How to Disconnect a python QDBus connection?

2012-09-17 Thread Shahin Azad
I made some kind of answering machine for pidgin client that uses Linuxes DBus to make connection with pidgin. the code is this: class DBus_Answer(): def __init__(self, text = No text): self.answer = text bus_loop = DBusQtMainLoop(set_as_default=True)

Re: [PyQt] Help with segfault in PyQt program

2012-09-17 Thread Shriramana Sharma
Hi thanks for that fix. I had to polish my concepts of what Python variables are before I could fathom this correctly: http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#other-languages-have-variables Anyhow, I have now further developed the program some and added some formulae

Re: [PyQt] sip: template %MappedType doesn't allow /AllowNone/

2012-09-17 Thread Mathias . Born
On 17.09.2012, 18:44:19 Phil Thompson wrote: On Mon, 10 Sep 2012 23:31:20 +0200, mathias.b...@gmx.de wrote: Phil, While using /AlloNone/ on a normal mapped type directive like %MappedType boost::optionalfs::path /AllowNone/ works, sip tells me Deprecation warning :

Re: [PyQt] sip: extend exception support

2012-09-17 Thread Mathias . Born
On 17.09.2012, 22:14:49 Phil Thompson wrote: On Mon, 27 Aug 2012 12:10:23 -0700, Matt Newell newe...@blur.com wrote: The difference is the access to the (not necessarily present) objects. How are you getting these? Phil Here's the patch against a quite old hg checkout. After several

Re: [PyQt] sip: template %MappedType doesn't allow /AllowNone/

2012-09-17 Thread Phil Thompson
On Mon, 17 Sep 2012 22:10:35 +0200, mathias.b...@gmx.de wrote: On 17.09.2012, 18:44:19 Phil Thompson wrote: On Mon, 10 Sep 2012 23:31:20 +0200, mathias.b...@gmx.de wrote: Phil, While using /AlloNone/ on a normal mapped type directive like %MappedType boost::optionalfs::path /AllowNone/