Commit b129862b authored by Alex Henrie's avatar Alex Henrie

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

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