[PyQt] Multiple screens, virtual desktops ans QSystemTrayIcon

2008-08-12 Thread David Klasinc
Greetings, any clever ideas on how to force an application, that was hidden by clicking on system tray icon, showing itself on current virtual desktop? rgrds, David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.co

Re: [PyQt] Returning a subclass

2008-07-10 Thread David Klasinc
David Klasinc wrote: Disregard. First few action that are added to the toolbar were in fact QActions, those added later were myActions. Regards, David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

[PyQt] Returning a subclass

2008-07-10 Thread David Klasinc
Greetings, here is the code: class myAction (QtGui.QAction): def __init__ (self, parent, myProperty): QtGui.QAction.__init__ (self, parent) self.myProperty = myProperty Later this myAction is instanced and added to a toolbar someAction = myAction (self,

Re: [PyQt] QThread Behaviour

2008-06-17 Thread David Klasinc
Andreas Pakulat wrote: On 17.06.08 16:23:01, David Klasinc wrote: Greetings, After QThread.run() was called, shouldn't calling thread continue with its execution and not wait for the thread to finish? Shortened example follows No, because you don't spawn a new thread in whic

[PyQt] QThread Behaviour

2008-06-17 Thread David Klasinc
Greetings, After QThread.run() was called, shouldn't calling thread continue with its execution and not wait for the thread to finish? Shortened example follows class myThread (QtCore.QThread): def run (self): print "T 1" sleep 1 print "T 2" sleep 1 print "T 3" thread = myThread

Re: [PyQt] Re: Adding multiple actions

2008-06-12 Thread David Klasinc
Alberto Berti wrote: QSignalMapper: http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qsignalmapper.html cheers Works like a charm, many thanks! regards, David ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcom

[PyQt] Adding multiple actions

2008-06-12 Thread David Klasinc
Greetings, I have more Qt oriented question about adding actions. If I add several actions to a toolbar, how do I refer to them later? myToolBar.addAction ("Button 1") myToolBar.addAction ("Button 2") myToolBar.addAction ("Button 3") myToolBar.addAction ("Button 4") How to connect those acti

Re: [PyQt] Detecting second copy of program in memory.[SOLVED]

2008-06-11 Thread David Klasinc
Igor Prischepoff wrote: Hello, I have found solution for my problem. So this post only for archiving in email list. Attaching example is a python version of this solution: http://wiki.qtcentre.org/index.php?title=SingleApplication It is possible to detect second instance of application and

[PyQt] Getting rid of an object

2008-06-07 Thread David Klasinc
Greetings, I am facing a rather annoying problem since I have no idea how to get rid of a dialog that I created. For example, in an instance of QMainWindow I opened another dialog with self.dialogNew = newDialog (self) self.dialogNew.show () newDialog is a subclassed QDialog with UI create

[PyQt] [PyKDE4] Transition from PyKDE3

2008-05-25 Thread David Klasinc
Greetings, After some tinkering in PyKDE3, I decided that I'd rewrite everything in PyKDE4. To be more on the bleeding edge. ;) I created MainWindow in designer4 and run it thru pykde4uic. Which has couple of bug with outputting the data, but I got past this. Then I created one more dialog

[PyQt] Problems with KSysTray

2008-05-16 Thread David Klasinc
Greetings, I hope that this list deals with PyKDE issues too. :) Anyways, I am making an application that stays docked in KDE Systray. Copied straight from the PyKDE examples, this is my code: self.systray = KSystemTray (self, "MyApp") self.systray.setCaption ("MyApp")