Package gui :: Module interpreter :: Class Interpreter_thread
[hide private]
[frames] | no frames]

Class Interpreter_thread

source code


The threaded interpreter.

Instance Methods [hide private]
 
__init__(self)
Initialise the object.
source code
 
empty(self)
Is the queue empty?
source code
 
exit(self)
Cause the thread to exit once all currently queued user functions are processed.
source code
 
join(self)
Wrapper method for the Queue.join() method.
source code
 
queue(self, fn, *args, **kwds)
Queue up a user function for asynchronous execution.
source code
 
run(self)
Execute the thread.
source code

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, setDaemon, setName, start

Inherited from threading.Thread (private): _reset_internal_locks, _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialise the object.

Overrides: object.__init__

join(self)

source code 

Wrapper method for the Queue.join() method.

Overrides: threading.Thread.join

queue(self, fn, *args, **kwds)

source code 

Queue up a user function for asynchronous execution.

Parameters:
  • fn (str) - The user function as a string.
  • args (any arguments) - The user function arguments.
  • kwds (any keyword arguments) - The user function keyword arguments.

run(self)

source code 

Execute the thread.

Overrides: threading.Thread.run