Re: [PyQt] Changing systray icon while handling signal

2008-01-17 Thread Jim Bublitz
On Thursday 17 January 2008 21:26, Dog Walker wrote: > On Jan 17, 2008 2:23 PM, Jim Bublitz <[EMAIL PROTECTED]> wrote: > > On Thursday 17 January 2008 08:27, Dog Walker wrote: > > > Using pyKde3 > > > > > > I have a KSytemTray application. I want to change the systray icon > > > (and tooltip) when

Re: [PyQt] Changing systray icon while handling signal

2008-01-17 Thread Dog Walker
On Jan 17, 2008 2:23 PM, Jim Bublitz <[EMAIL PROTECTED]> wrote: > On Thursday 17 January 2008 08:27, Dog Walker wrote: > > Using pyKde3 > > > > I have a KSytemTray application. I want to change the systray icon > > (and tooltip) when I begin handling a menuitem and change again > > before returnin

[PyQt] Help with QTableView

2008-01-17 Thread Catriona Johnson
Hello How do I implement a checkbox in a QTableView column that retreives/stores values in a database? Also, I have one model with columns say abc and I have two QTableViews of this model that show the columns in different orders - bca and cab. How do I change the column order in the QTableView?

Re: [PyQt] QLabel.setTextInteractionFlags raises AttributeError

2008-01-17 Thread Dog Walker
On Jan 17, 2008 3:05 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Thursday 17 January 2008, Dog Walker wrote: > > QT: 3.3.7 SuSE 10.2 > > > > Docs (/PyQt-x11-gpl-4.1.1/doc/html/qlabel.html) show > > "QLabel.setTextInteractionFlags (self, Qt.TextInteractionFlags flags)" > > This is PyQt4. > I

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Phil Thompson
On Thursday 17 January 2008, Ewald de Wit wrote: > On Thursday 17 January 2008 18:27:19 Peter Shinners wrote: > > > button.clicked.connect(self.onButtonClicked) > > > > Is there a clean way to handle signals with the same name that take > > different arguments? Here's an idea I can think of for Q

Re: [PyQt] mousePressEvent not getting called

2008-01-17 Thread Phil Thompson
On Thursday 17 January 2008, Quoc Tran wrote: > I’m having a weird problem with using my custom Qt widget in > PyQt. > > > > I created a custom QFrame in C++ and overrided: > > virtual void mousePressEvent( QMouseEvent * ); > > > > When I use my widget in python the mousePressEvent is never > calle

Re: [PyQt] QLabel.setTextInteractionFlags raises AttributeError

2008-01-17 Thread Phil Thompson
On Thursday 17 January 2008, Dog Walker wrote: > QT: 3.3.7 SuSE 10.2 > > Docs (/PyQt-x11-gpl-4.1.1/doc/html/qlabel.html) show > "QLabel.setTextInteractionFlags (self, Qt.TextInteractionFlags flags)" This is PyQt4. > but > > from qt import * > ... This is PyQt3. > self.aboutTextLabel = QLabel(s

Re: [PyQt] What do I import in pykde 3.16 to access PyKDE.versionString ()?

2008-01-17 Thread Jim Bublitz
On Thursday 17 January 2008 10:42, Dog Walker wrote: > The documentation says that both KDE.versionString and > PyKDE.versionString are available since 3.11. I find KDE.versionString > in kdecore on PyKDE 3.16 but cannot locate PyKDE.versionString. What > should I import to access this function? I

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Ewald de Wit
On Thursday 17 January 2008 18:27:19 Peter Shinners wrote: > > button.clicked.connect(self.onButtonClicked) > > Is there a clean way to handle signals with the same name that take > different arguments? Here's an idea I can think of for QComboBox. > > combo.activated[int].connect(callback1) > c

Re: [PyQt] Changing systray icon while handling signal

2008-01-17 Thread Jim Bublitz
On Thursday 17 January 2008 08:27, Dog Walker wrote: > Using pyKde3 > > I have a KSytemTray application. I want to change the systray icon > (and tooltip) when I begin handling a menuitem and change again > before returning. It appears that the icon/tooltip is only set after > returning to pyKde.

[PyQt] Re: Changing systray icon while handling signal

2008-01-17 Thread thudfoo
Dog Walker wrote: > Using pyKde3 > > I have a KSytemTray application. I want to change the systray icon > (and tooltip) when I begin handling a menuitem and change again > before returning. It appears that the icon/tooltip is only set after > returning to pyKde. Can I do what I want? How? > Sh

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Aaron Digulla
Peter Shinners schrieb: >> Remember: If everyone in the world would develop software >> the way you do, you'd be unemployed. > > I'm not sure how to interpret this. I hope to keep using Pyqt for a long > time. I'm trying to make you understand that your way of developing software works for *you*

[PyQt] QLabel.setTextInteractionFlags raises AttributeError

2008-01-17 Thread Dog Walker
QT: 3.3.7 SuSE 10.2 Docs (/PyQt-x11-gpl-4.1.1/doc/html/qlabel.html) show "QLabel.setTextInteractionFlags (self, Qt.TextInteractionFlags flags)" but from qt import * ... self.aboutTextLabel = QLabel(self.itsWindow,"aboutVersions") ... Traceback (most recent call last): File "kgmailnotifier.py"

[PyQt] segfault!...and more

2008-01-17 Thread Alberto Berti
Hi all, i'm quite new to this list, but i'm working with PyQT4 with great satisfaction to develop a framework, and an application, to build database driven applications using the model/view/delegate approach with SQLAlchemy (http://sqlalchemy.org) instead of the standard SQL enabled tree of mode

[PyQt] mousePressEvent not getting called

2008-01-17 Thread Quoc Tran
I’m having a weird problem with using my custom Qt widget in PyQt. I created a custom QFrame in C++ and overrided: virtual void mousePressEvent( QMouseEvent * ); When I use my widget in python the mousePressEvent is never called but if I derive off of my custom class in PyQt and override

[PyQt] SIP problem -- multiple /Out/ args?

2008-01-17 Thread Jim Crowell
I'm using SIP 4.7.3. The following method specification in my .sip file: int receiveMessage(string* userName /Out/, string* messageType /Out/, string* messageBody /Out/, string* context /Out/) /ReleaseGIL/ ; Yields the following in the generated cod

RE: [PyQt] simpler 'connect' function

2008-01-17 Thread Peter Shinners
Aaron Digulla: > I've wasted several hours searching for typos so far, so > I can't live with the current state and making this area > even more volatile will only increase the chance that I'll > give up on PyQt and create a fork. At minimum I'm talking about the simplification of a single argumen

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Aaron Digulla
Peter Shinners schrieb: > But I don't really have problems with the existing > connect function. If we could just get rid of the SIGNAL requirement and > pass a string argument it would get a whole lot nicer. I've wasted several hours searching for typos so far, so I can't live with the current s

[PyQt] What do I import in pykde 3.16 to access PyKDE.versionString ()?

2008-01-17 Thread Dog Walker
The documentation says that both KDE.versionString and PyKDE.versionString are available since 3.11. I find KDE.versionString in kdecore on PyKDE 3.16 but cannot locate PyKDE.versionString. What should I import to access this function? -- I have seen the future and I'm not in it!

Re: [PyQt] Segfault with PyQt

2008-01-17 Thread Phil Thompson
On Thursday 17 January 2008, Alexandre Badez wrote: > Hye every body, > > I've got a problem with PyQt (4.1.1 (262401)) /Qt (v4.1.4 (262404)). > I'm coding for windows (W2K), and Unix (Solaris 5.8) Those are very old versions. > As you see in Error_Simple.py, the application crash if the view is

RE: [PyQt] simpler 'connect' function

2008-01-17 Thread Peter Shinners
Ewald de Wit > Wouldn't it be nicer if the signals where attributes of your object, > so that you could write > > button.clicked.connect(self.onButtonClicked) Is there a clean way to handle signals with the same name that take different arguments? Here's an idea I can think of for QComboBox

[PyQt] Segfault with PyQt

2008-01-17 Thread Alexandre Badez
Hye every body, I've got a problem with PyQt (4.1.1 (262401)) /Qt (v4.1.4 (262404)). I'm coding for windows (W2K), and Unix (Solaris 5.8) As you see in Error_Simple.py, the application crash if the view is a tree but not a table nor a list view. My question is, what am I doing wrong in my model,

[PyQt] Changing systray icon while handling signal

2008-01-17 Thread Dog Walker
Using pyKde3 I have a KSytemTray application. I want to change the systray icon (and tooltip) when I begin handling a menuitem and change again before returning. It appears that the icon/tooltip is only set after returning to pyKde. Can I do what I want? How? -- I have seen the future and I'm n

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Aaron Digulla
Quoting Ewald de Wit <[EMAIL PROTECTED]>: On Wednesday 16 January 2008 09:21:40 Aaron Digulla wrote: As for making the API simpler, I'd opt for button.connectClicked(self.buttonWasClicked) Wouldn't it be nicer if the signals where attributes of your object, so that you could write

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Mark Summerfield
On 2008-01-17, Ewald de Wit wrote: > On Wednesday 16 January 2008 09:21:40 Aaron Digulla wrote: > > As for making the API simpler, I'd opt for > > > >      button.connectClicked(self.buttonWasClicked) > > Wouldn't it be nicer if the signals where attributes of your object, > so that you could write

Re: [PyQt] simpler 'connect' function

2008-01-17 Thread Ewald de Wit
On Wednesday 16 January 2008 09:21:40 Aaron Digulla wrote: > As for making the API simpler, I'd opt for > >      button.connectClicked(self.buttonWasClicked) Wouldn't it be nicer if the signals where attributes of your object, so that you could write button.clicked.connect(self.onButtonCl