Commit b129862b authored by Alex Henrie's avatar Alex Henrie
Browse files

Allow graph_tool.draw.draw_hierarchy to be used without GTK installed

parent c40329b2
...@@ -872,14 +872,15 @@ def prop_to_size(prop, mi=0, ma=5, log=False, power=0.5): ...@@ -872,14 +872,15 @@ def prop_to_size(prop, mi=0, ma=5, log=False, power=0.5):
try: try:
from . cairo_draw import graph_draw, cairo_draw, \ from . cairo_draw import graph_draw, cairo_draw, \
get_hierarchy_control_points, default_cm, default_clrs get_hierarchy_control_points, default_cm, default_clrs, draw_hierarchy
__all__ += ["draw_hierarchy"]
except ImportError: except ImportError:
pass pass
try: try:
from . cairo_draw import GraphWidget, GraphWindow, \ from . cairo_draw import GraphWidget, GraphWindow, \
interactive_window, draw_hierarchy interactive_window
__all__ += ["interactive_window", "GraphWidget", "GraphWindow", "draw_hierarchy"] __all__ += ["interactive_window", "GraphWidget", "GraphWindow"]
except ImportError: except ImportError:
pass pass
......
Supports Markdown
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