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
1d7916cd
Commit
1d7916cd
authored
Jul 03, 2018
by
Tiago Peixoto
Browse files
interactive_window(): change paramter 'no_main' to 'main'
parent
0407f41a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/draw/gtk_draw.py
View file @
1d7916cd
...
...
@@ -1182,7 +1182,7 @@ _window_list = []
def
interactive_window
(
g
,
pos
=
None
,
vprops
=
None
,
eprops
=
None
,
vorder
=
None
,
eorder
=
None
,
nodesfirst
=
False
,
geometry
=
(
500
,
400
),
update_layout
=
True
,
sync
=
True
,
no_
main
=
Fals
e
,
**
kwargs
):
update_layout
=
True
,
sync
=
True
,
main
=
Tru
e
,
**
kwargs
):
r
"""
Display an interactive GTK+ window containing the given graph.
...
...
@@ -1213,8 +1213,8 @@ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
If ``True``, the layout will be updated dynamically.
sync : bool (optional, default: ``True``)
If ``False``, run asynchronously. (Requires :mod:`IPython`)
no_
main : bool (optional, default: ``
Fals
e``)
If ``
Tru
e``, the GTK+ main loop will not be called.
main : bool (optional, default: ``
Tru
e``)
If ``
Fals
e``, the GTK+ main loop will not be called.
**kwargs
Any extra parameters are passed to :class:`~graph_tool.draw.GraphWindow`,
:class:`~graph_tool.draw.GraphWidget` and :func:`~graph_tool.draw.cairo_draw`.
...
...
@@ -1243,7 +1243,7 @@ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
nodesfirst
,
update_layout
,
**
kwargs
)
win
.
show_all
()
_window_list
.
append
(
win
)
if
not
no_
main
:
if
main
:
if
not
sync
:
# just a placeholder for a proper main loop integration with gtk3 when
# ipython implements it
...
...
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