[PyQt] SIP: overloaded functions with the same Python signature

2010-07-05 Thread GOO Creations
Hello This may sound like a really stupid question, but I can't find proper documentation/examples online: I'm using SIP for my C++ - Python bindings. My C++ class has 2 functions with the same name. -- The C++ class: class MyHasher {

[PyQt] question about SIGNAL strings

2010-07-05 Thread Zoltan Szalai
hello, running the attached code snippet the result is as follows: 2destroyed(QObject*) 2aSignal() i'd like to ask what are those '2'-s at the start of the strings for? the result is the same if i'd just print out SIGNAL('aSignal()'). probably a stupid question but i'd like to understand how thi

Re: [PyQt] How is thousands separator displayed in QDoubleSpinBox?

2010-07-05 Thread Arnold Krille
On Monday 05 July 2010 15:15:32 bluekyu wrote: > Hello, I want to display thousands separator in QDoubleSpinBox. > (For example, I may click upward button at 999 and it dispaly 1,000) > I tried to find this in google and doc. > But I don't know how to do this. Can I do this? > My environment is pyt

Re: [PyQt] Add menu at runtime

2010-07-05 Thread F.A.Pinkse
Hello Nick, Thank you for your reply. It did put me on the trick to this self.menuGSound = self.menuBar().addMenu("Sound") and it works. it also brought me this self.menuSound.deleteLater() and it works. I think I could have figured out the .addMenu myself, but the .de

[PyQt] How is thousands separator displayed in QDoubleSpinBox?

2010-07-05 Thread bluekyu
Hello, I want to display thousands separator in QDoubleSpinBox. (For example, I may click upward button at 999 and it dispaly 1,000) I tried to find this in google and doc. But I don't know how to do this. Can I do this? My environment is python3.1, pyqt 4.7.3, kubuntu 10.04 and QWidget.locale().g

[PyQt] Converting numpy arrays to QPixmap

2010-07-05 Thread Alexander Borghgraef
Hi all, Some time ago, I wrote a little image processing tool which worked on numpy arrays. To display them in the gui, I used a procedure similar to the following demo code: from PyQt4.QtGui import * import scipy, ImageQt, sys app = QApplication(sys.argv) l = scipy.lena() p = QLabel() q = QPixm

Re: [PyQt] Add menu at runtime

2010-07-05 Thread Nick Gaens
You could try to call menuBar.update() after having added / removed menu's or actions to or from it.. On Sun, Jul 4, 2010 at 9:19 PM, F.A.Pinkse wrote: > Hi All, > > I want to add a menu at runtime to an already exsiting menubar. > > How do I do that? > > > Tnanks > > Frans. > > > _

Re: [PyQt] adding signalling to QGraphicsItems

2010-07-05 Thread Christopher M. Nahler
On 01.07.2010 16:21, Phil Thompson wrote: On Thu, 01 Jul 2010 16:10:32 +0200, "Christopher M. Nahler" wrote: On 01.07.2010 12:29, Phil Thompson wrote: On Thu, 01 Jul 2010 11:58:01 +0200, "Christopher M. Nahler" wrote: I want to add signalling functionality to scene item