Public Member Functions | |
| def | __init__ |
| def | draw |
Public Attributes | |
| ctrl_mask | |
| get_focus_flag | |
| pixmap | |
| gc | |
Private Member Functions | |
| def | _handle_focus_event |
| def | _handle_mouse_button_press |
| def | _handle_mouse_button_release |
| def | _handle_mouse_motion |
| def | _handle_window_expose |
Private Attributes | |
| _main_window | |
| _focus_flag | |
DrawingArea is the gtk pixel map that graphical elements may draw themselves on. The drawing area also responds to mouse and key events.
Definition at line 28 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea.__init__ | ( | self, | ||
| main_window | ||||
| ) |
DrawingArea contructor. Connect event handlers.
| main_window | the main_window containing all flow graphs |
Definition at line 34 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea.draw | ( | self | ) |
Draw the pixmap onto this drawing area.
Definition at line 66 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea._handle_focus_event | ( | self, | ||
| widget, | ||||
| event, | ||||
| focus_flag | ||||
| ) | [private] |
Handlers
Record the focus state of the flow graph window.
Definition at line 75 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea._handle_mouse_button_press | ( | self, | ||
| widget, | ||||
| event | ||||
| ) | [private] |
Forward button click information to the flow graph.
Definition at line 79 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea._handle_mouse_button_release | ( | self, | ||
| widget, | ||||
| event | ||||
| ) | [private] |
Forward button release information to the flow graph.
Definition at line 91 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea._handle_mouse_motion | ( | self, | ||
| widget, | ||||
| event | ||||
| ) | [private] |
Forward mouse motion information to the flow graph.
Definition at line 102 of file DrawingArea.py.
| def grc.gui.DrawingArea.DrawingArea._handle_window_expose | ( | self, | ||
| widget, | ||||
| event | ||||
| ) | [private] |
Called when the window initially appears or is resized: create a new pixmap, draw the flow graph.
Definition at line 112 of file DrawingArea.py.
Definition at line 40 of file DrawingArea.py.
Definition at line 41 of file DrawingArea.py.
Definition at line 58 of file DrawingArea.py.
Definition at line 59 of file DrawingArea.py.
Definition at line 63 of file DrawingArea.py.
Definition at line 64 of file DrawingArea.py.
1.5.4