Commit 1d7916cd authored by Tiago Peixoto's avatar Tiago Peixoto

interactive_window(): change paramter 'no_main' to 'main'

parent 0407f41a
...@@ -1182,7 +1182,7 @@ _window_list = [] ...@@ -1182,7 +1182,7 @@ _window_list = []
def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None, def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
eorder=None, nodesfirst=False, geometry=(500, 400), eorder=None, nodesfirst=False, geometry=(500, 400),
update_layout=True, sync=True, no_main=False, **kwargs): update_layout=True, sync=True, main=True, **kwargs):
r""" r"""
Display an interactive GTK+ window containing the given graph. 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, ...@@ -1213,8 +1213,8 @@ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
If ``True``, the layout will be updated dynamically. If ``True``, the layout will be updated dynamically.
sync : bool (optional, default: ``True``) sync : bool (optional, default: ``True``)
If ``False``, run asynchronously. (Requires :mod:`IPython`) If ``False``, run asynchronously. (Requires :mod:`IPython`)
no_main : bool (optional, default: ``False``) main : bool (optional, default: ``True``)
If ``True``, the GTK+ main loop will not be called. If ``False``, the GTK+ main loop will not be called.
**kwargs **kwargs
Any extra parameters are passed to :class:`~graph_tool.draw.GraphWindow`, Any extra parameters are passed to :class:`~graph_tool.draw.GraphWindow`,
:class:`~graph_tool.draw.GraphWidget` and :func:`~graph_tool.draw.cairo_draw`. :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, ...@@ -1243,7 +1243,7 @@ def interactive_window(g, pos=None, vprops=None, eprops=None, vorder=None,
nodesfirst, update_layout, **kwargs) nodesfirst, update_layout, **kwargs)
win.show_all() win.show_all()
_window_list.append(win) _window_list.append(win)
if not no_main: if main:
if not sync: if not sync:
# just a placeholder for a proper main loop integration with gtk3 when # just a placeholder for a proper main loop integration with gtk3 when
# ipython implements it # ipython implements it
......
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