Package flumotion :: Package extern :: Module code :: Class GtkInterpreter
[show private | hide private]
[frames | no frames]

Type GtkInterpreter

object --+        
         |        
  _Verbose --+    
             |    
        Thread --+
                 |
                GtkInterpreter


Run a gtk main() in a separate thread. Python commands can be passed to the thread where they will be executed. This is implemented by periodically checking for passed code using a GTK timeout callback.
Method Summary
  __init__(self, globals, locals)
  code_exec(self)
Execute waiting code.
  feed(self, code)
Feed a line of code to the thread.
  feed_sync(self, code)
  interact(self, banner, reader, block)
  run(self)
    Inherited from Thread
  __repr__(self)
  getName(self)
  isAlive(self)
  isDaemon(self)
  join(self, timeout)
  setDaemon(self, daemonic)
  setName(self, name)
  start(self)
  _set_daemon(self)
    Inherited from _Verbose
  _note(self, format, *args)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
int TIMEOUT = 100                                                                   
    Inherited from Thread
bool _Thread__initialized = False

Method Details

code_exec(self)

Execute waiting code. Called every timeout period.

feed(self, code)

Feed a line of code to the thread. This function will block until the code checked by the GTK thread. Return true if executed the code. Returns false if deferring execution until complete block available.

Class Variable Details

TIMEOUT

Type:
int
Value:
100                                                                   

Generated by Epydoc 2.1 on Wed Sep 13 13:38:33 2006 http://epydoc.sf.net