Package Editra :: Package src :: Package extern :: Module decorlib
[hide private]

Module decorlib

source code

Collection of helpful decorator methods

Classes [hide private]
  MethodInvocationEvent
Event fired to the GUI thread indicating a method invocation.
Functions [hide private]
 
handler(evt) source code
 
anythread(func)
Method decorator allowing call from any thread.
source code
Variables [hide private]
  _EVT_INVOKE_METHOD = 10356
Function Details [hide private]

anythread(func)

source code 

Method decorator allowing call from any thread. The method is replaced by one that posts a MethodInvocationEvent to the object, then blocks waiting for it to be completed. The target object if automatically connected to the _EVT_INVOKE_METHOD event if it wasn't alread connected.