|
def | __init__ (self, argv=[], shelltype='python', banner=[], filename=None, size=100, user_local_ns=None, user_global_ns=None) |
|
def | key_press_event (self, widget, event) |
|
def | scroll_event (self, widget, event) |
|
def | button_press_event (self, widget, event) |
|
def | quit_event (self, widget, event) |
|
def | refresh (self) |
|
def | quit (self) |
|
|
| figures |
|
| callbacks |
|
| last_figure |
|
| active_canvas |
|
GTK python console
Definition at line 52 of file init.py.
◆ button_press_event()
def init.Console.button_press_event |
( |
|
self, |
|
|
|
widget, |
|
|
|
event |
|
) |
| |
Button press event
Definition at line 85 of file init.py.
85 def button_press_event (self, widget, event):
86 """ Button press event """
◆ key_press_event()
def init.Console.key_press_event |
( |
|
self, |
|
|
|
widget, |
|
|
|
event |
|
) |
| |
Handle key press event
Definition at line 71 of file init.py.
71 def key_press_event (self, widget, event):
72 """ Handle key press event """ 74 if self.active_canvas:
75 self.active_canvas.emit (
'key-press-event', event)
77 return cons.Console.key_press_event (self, widget, event)
◆ quit()
def init.Console.quit |
( |
|
self | ) |
|
quit
Definition at line 100 of file init.py.
103 self.write(
"\n" + _(
"Have a nice day!") +
"\n")
104 return super(Console, self).quit()
◆ quit_event()
def init.Console.quit_event |
( |
|
self, |
|
|
|
widget, |
|
|
|
event |
|
) |
| |
Event handler for closing of console window
Definition at line 89 of file init.py.
89 def quit_event (self, widget, event):
90 """ Event handler for closing of console window """
◆ refresh()
def init.Console.refresh |
( |
|
self | ) |
|
Refresh drawing
Definition at line 93 of file init.py.
94 """ Refresh drawing """ 95 for fig
in self.figures:
96 figure, canvas, anchor = fig
◆ scroll_event()
def init.Console.scroll_event |
( |
|
self, |
|
|
|
widget, |
|
|
|
event |
|
) |
| |
Scroll event
Definition at line 79 of file init.py.
79 def scroll_event (self, widget, event):
81 if self.active_canvas:
The documentation for this class was generated from the following file: