Package vqt :: Module main
[hide private]
[frames] | no frames]

Module main

source code

Classes [hide private]
  QEventThread
A thread who exists to consume callback requests from the given workq and fire them into Qt *safely*.
  VQApplication
  QEventChannel
Functions [hide private]
 
idlethread(func)
A decorator which causes the function to be called by the qt main thread rather than synchronously...
source code
 
workthread(func)
Proxy a call through the single vqt.main worker thread (who exists to keep the GUI from blocking on stuff...
source code
 
boredthread(func)
The same as "workthread" above, but drop the request on the floor if the worker thread already has better things to do...
source code
 
idlethreadsync(func)
Similar to idlethread except that it is synchronous and able to return values.
source code
 
iAmQtSafeThread() source code
 
workerThread() source code
 
startup(css=None) source code
 
main() source code
 
eatevents() source code
 
vqtevent(event, einfo)
Fire an event into the application wide GUI events subsystem.
source code
 
vqtconnect(callback, event=None)
Connect to the application wide "gui events" which has a callback syntax: callback(event,einfo)
source code
 
vqtdisconnect(callback, event=None)
Connect to the application wide "gui events" which has a callback syntax: callback(event,einfo)
source code
Function Details [hide private]

idlethread(func)

source code 

A decorator which causes the function to be called by the qt main thread rather than synchronously...

NOTE: This makes the call async handled by the qt main loop code. you can NOT return anything.

workthread(func)

source code 

Proxy a call through the single vqt.main worker thread (who exists to keep the GUI from blocking on stuff... )

workerThread()

source code 
Decorators:
  • @e_threads.firethread

vqtevent(event, einfo)

source code 

Fire an event into the application wide GUI events subsystem. Each event should be an event name ( str ) and arbitrary event info context.

vqtconnect(callback, event=None)

source code 

Connect to the application wide "gui events" which has
a callback syntax:
    callback(event,einfo)

Optionally specify an event name to only recieve events
of the specified type.

vqtdisconnect(callback, event=None)

source code 

Connect to the application wide "gui events" which has
a callback syntax:
    callback(event,einfo)

Optionally specify an event name to only recieve events
of the specified type.