Commit c8d0ed60 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[gui] Fix typos

parent 05ad945b
......@@ -58,10 +58,18 @@ class ChartView(gtk.DrawingArea):
.. note:: Also instanciated by the overview widget.
.. note:: DrawingArea can capture key-press-events:
.. note:: DrawingArea can capture key-press-events::
- add gtk.gdk.KEY_PRESS_MASK mask to event
- be sure that the DrawingArea has the focus by using grab_focus() on
mouse events.
.. TODO:: Optimize events handling::
- on_motion_notify: Mouse over the widget, causing multiple calls to
find_element() of the top node.
- on_expose_event: When the window is covered/partially covered;
all the pixmap is redrawn.
def __init__(self, width, height, drawing_style, controler, model):
......@@ -137,7 +145,7 @@ class ChartView(gtk.DrawingArea):
self.get_style().white_gc, True, 0, 0, self.draw_width, self.draw_height
# draw in the pixmap
# draw the full model from its top node in the pixmap
# expose the drawing
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment