Package brisa :: Package core :: Package reactors :: Module gtk2 :: Class Gtk2Reactor
[hide private]
[frames] | no frames]

Class Gtk2Reactor

source code

           object --+        
                    |        
  singleton.Singleton --+    
                        |    
ireactor.ReactorInterface --+
                            |
                           Gtk2Reactor

Nested Classes [hide private]

Inherited from singleton.Singleton: __metaclass__

Instance Methods [hide private]
 
add_timer(self, interval, callback, threshold=0)
Add timer.
source code
 
rem_timer(self, timer_id)
Removes a timer.
source code
 
add_fd(self, fd, event_callback, event_type)
Adds a fd for watch.
source code
 
rem_fd(self, fd_handler)
Removes a fd from being watched.
source code
 
add_after_stop_func(self, func)
Registers a function to be called before entering the STOPPED state.
source code
 
rem_after_stop_func(self, func)
Removes a registered function.
source code
 
add_before_start_func(self, func)
Registers a function to be called before starting the main loop.
source code
 
rem_before_start_func(self, func)
Removes a registered function.
source code
 
main_loop_iterate(self)
Runs a single iteration of the main loop.
source code
 
main(self)
Enters the RUNNING state by running the main loop until main_quit() is called.
source code
 
main_quit(self)
Terminates the main loop.
source code
 
is_running(self)
Returns True if the main loop is running
source code
 
_main_call_after_stop_funcs(self)
Calls registered functions to be called after the main loop is stopped.
source code
 
_main_call_before_start_funcs(self)
Call registered functions to be called before starting the main loop.
source code

Inherited from ireactor.ReactorInterface: __init__

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

Class Variables [hide private]
  _stop_funcs = []
  _start_funcs = []

Inherited from ireactor.ReactorInterface: state

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

add_timer(self, interval, callback, threshold=0)

source code 

Add timer.

Overrides: ireactor.ReactorInterface.add_timer

Note: should return an ID assigned to the timer, so that it can be removed by rem_timer().

rem_timer(self, timer_id)

source code 

Removes a timer.

Overrides: ireactor.ReactorInterface.rem_timer

add_fd(self, fd, event_callback, event_type)

source code 

Adds a fd for watch.

Overrides: ireactor.ReactorInterface.add_fd

rem_fd(self, fd_handler)

source code 

Removes a fd from being watched.

Overrides: ireactor.ReactorInterface.rem_fd

add_after_stop_func(self, func)

source code 

Registers a function to be called before entering the STOPPED state.

Parameters:
  • func (callable) - function
Overrides: ireactor.ReactorInterface.add_after_stop_func

rem_after_stop_func(self, func)

source code 

Removes a registered function.

Parameters:
  • func (callable) - function
Overrides: ireactor.ReactorInterface.rem_after_stop_func

add_before_start_func(self, func)

source code 

Registers a function to be called before starting the main loop.

Parameters:
  • func (callable) - function
Overrides: ireactor.ReactorInterface.add_before_start_func

rem_before_start_func(self, func)

source code 

Removes a registered function.

Parameters:
  • func (callable) - function
Overrides: ireactor.ReactorInterface.rem_before_start_func

main_loop_iterate(self)

source code 

Runs a single iteration of the main loop. Reactor enters the RUNNING state while this method executes.

Overrides: ireactor.ReactorInterface.main_loop_iterate

main(self)

source code 

Enters the RUNNING state by running the main loop until main_quit() is called.

Overrides: ireactor.ReactorInterface.main

main_quit(self)

source code 

Terminates the main loop.

Overrides: ireactor.ReactorInterface.main_quit

is_running(self)

source code 

Returns True if the main loop is running

Overrides: ireactor.ReactorInterface.is_running