Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
c8d0ed60
Commit
c8d0ed60
authored
Jan 25, 2020
by
VIGNET Pierre
Browse files
[gui] Fix typos
parent
05ad945b
Changes
1
Hide whitespace changes
Inline
Side-by-side
gui/cadbiom_gui/gt_gui/chart_view.py
View file @
c8d0ed60
...
...
@@ -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
.
pixmap
.
draw_rectangle
(
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
self
.
model
.
draw
(
self
)
# expose the drawing
self
.
window
.
draw_drawable
(
self
.
get_style
().
fg_gc
[
gtk
.
STATE_NORMAL
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment