Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
92c1739f
Commit
92c1739f
authored
Jul 02, 2015
by
Tiago Peixoto
Browse files
Update animation demos
parent
aab34c1b
Changes
4
Hide whitespace changes
Inline
Side-by-side
doc/demos/animation_dancing.py
View file @
92c1739f
...
@@ -83,7 +83,7 @@ def update_state():
...
@@ -83,7 +83,7 @@ def update_state():
# The following will force the re-drawing of the graph, and issue a
# The following will force the re-drawing of the graph, and issue a
# re-drawing of the GTK window.
# re-drawing of the GTK window.
win
.
graph
.
regenerate_surface
(
lazy
=
False
)
win
.
graph
.
regenerate_surface
()
win
.
graph
.
queue_draw
()
win
.
graph
.
queue_draw
()
# if doing an offscreen animation, dump frame to disk
# if doing an offscreen animation, dump frame to disk
...
...
doc/demos/animation_sirs.py
View file @
92c1739f
...
@@ -119,7 +119,7 @@ def update_state():
...
@@ -119,7 +119,7 @@ def update_state():
# The following will force the re-drawing of the graph, and issue a
# The following will force the re-drawing of the graph, and issue a
# re-drawing of the GTK window.
# re-drawing of the GTK window.
win
.
graph
.
regenerate_surface
(
lazy
=
False
)
win
.
graph
.
regenerate_surface
()
win
.
graph
.
queue_draw
()
win
.
graph
.
queue_draw
()
# if doing an offscreen animation, dump frame to disk
# if doing an offscreen animation, dump frame to disk
...
...
doc/demos/animation_zombies.py
View file @
92c1739f
...
@@ -135,7 +135,7 @@ def update_state():
...
@@ -135,7 +135,7 @@ def update_state():
# The following will force the re-drawing of the graph, and issue a
# The following will force the re-drawing of the graph, and issue a
# re-drawing of the GTK window.
# re-drawing of the GTK window.
win
.
graph
.
regenerate_surface
(
lazy
=
False
)
win
.
graph
.
regenerate_surface
()
win
.
graph
.
queue_draw
()
win
.
graph
.
queue_draw
()
# if doing an offscreen animation, dump frame to disk
# if doing an offscreen animation, dump frame to disk
...
...
doc/demos/interactive_bst.py
View file @
92c1739f
...
@@ -59,7 +59,7 @@ def update_bfs(widget, event):
...
@@ -59,7 +59,7 @@ def update_bfs(widget, event):
if
e
is
not
None
:
if
e
is
not
None
:
ecolor
[
e
]
=
orange
ecolor
[
e
]
=
orange
vcolor
[
v
]
=
vcolor
[
w
]
=
orange
vcolor
[
v
]
=
vcolor
[
w
]
=
orange
widget
.
regenerate_surface
(
lazy
=
False
)
widget
.
regenerate_surface
()
widget
.
queue_draw
()
widget
.
queue_draw
()
if
offscreen
:
if
offscreen
:
...
...
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