Flushing PyQt's Event Queue
Hi, I am writing an app which models growth of a system over time visually which is activated by button clicks, and when the loop finishes running i dont want any events [mainly clicking on buttons] that happened during the loop to be put into action since then it may run multiple times without the user realising what they have done, is there way to flush the event queue when the loop has finished?? ff -- http://mail.python.org/mailman/listinfo/python-list
Custom PyQt4 Slots
Is it possible to create custom PyQt4 Slots, i have searched high and low to no avail; I have an application that can set animation speed to different levels, i want the user to alter this, now quite clearly i can write a single function to control setting any speed with something like: def setSpeed(self, speed): some code in here to set speed but if i have mutiple option for speed do i have to connect them all to seperate callables for each individual speed which each in turn call setSpeed with their respective speeds or can i create a slot that can simply pass an integer to setSpeed in much the same way as the built-in SIGNAL from something like a combo box can pass its current index?? i realise this could be impossibly, knowing that would be equally useful and i will just work around it, albeit with more verbose code!! thanks ff -- http://mail.python.org/mailman/listinfo/python-list
Re: Custom PyQt4 Slots
On Aug 11, 9:56 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Diez B. Roggisch schrieb: > > > > > ff schrieb: > >> Is it possible to create custom PyQt4 Slots, i have searched high and > >> low to no avail; > > >> I have an application that can set animation speed to different > >> levels, i want the user to alter this, now quite clearly i can write a > >> single function to control setting any speed with something like: > > >> def setSpeed(self, speed): > >> some code in here to set speed > > >> but if i have mutiple option for speed do i have to connect them all > >> to seperate callables for each individual speed which each in turn > >> call setSpeed with their respective speeds or can i create a slot that > >> can simply pass an integer to setSpeed in much the same way as the > >> built-in SIGNAL from something like a combo box can pass its current > >> index?? > > >> i realise this could be impossibly, knowing that would be equally > >> useful and i will just work around it, albeit with more verbose code!! > > >http://docs.huihoo.com/pyqt/pyqt4.html#pyqt-signals-and-qt-signals > > > """ > > PyQt allows new signals to be defined dynamically. The act of emitting a > > PyQt signal implicitly defines it. PyQt v4 signals are also referenced > > using the QtCore.SIGNAL() function. > > """ > > And not to forget: > > """ > A slot is a function (in PyQt a slot is any Python callable). > """ > > It's as easy as it can get. > > Diez Sorry, yeah getting confused between SIGNALS and SLOTS, thanks -- http://mail.python.org/mailman/listinfo/python-list
Custom PyQt4 TableWidget
I am creating a custom widget based on a PyQt QTableWidget and i want to stop PyQt highlighting all the cells when the very top-left 'thing' is clicked, (dont know what to call it, its the bit that sits on the same row/column as the hozizontal/vertical header items), i cant find a way to do this, any suggestions? even the signal that is emitted when this 'thing' is clicked would be useful as i can manually un- highlight them all, but i cant find that either! any help appreciated, ff -- http://mail.python.org/mailman/listinfo/python-list
Re: Custom PyQt4 TableWidget
> > setSelectionMode()? > > Phil Ive tried that, it does half the job, it stops you selecting more than one item in the table at any one time but it doesnt stop the top-left 'thing', thanks though, -- http://mail.python.org/mailman/listinfo/python-list
Re: Custom PyQt4 TableWidget
On Aug 27, 6:44 pm, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Wed, 27 Aug 2008 09:51:29 -0700 (PDT), ff <[EMAIL PROTECTED]> > wrote: > > > > >> setSelectionMode()? > > >> Phil > > > Ive tried that, it does half the job, it stops you selecting more than > > one item in the table at any one time but it doesnt stop the top-left > > 'thing', > > How about setCornerButtonEnabled(False)? > > Phil Well done! I thought there must be something there somewhere, i really should learn to read more carefully!! thanks, ff -- http://mail.python.org/mailman/listinfo/python-list
Python solutions for old Police software?
http://www.cityfremontof.com -- http://mail.python.org/mailman/listinfo/python-list