本文整理汇总了Python中cylc.gui.dot_maker.DotMaker.get_dots方法的典型用法代码示例。如果您正苦于以下问题:Python DotMaker.get_dots方法的具体用法?Python DotMaker.get_dots怎么用?Python DotMaker.get_dots使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cylc.gui.dot_maker.DotMaker
的用法示例。
在下文中一共展示了DotMaker.get_dots方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from cylc.gui.dot_maker import DotMaker [as 别名]
# 或者: from cylc.gui.dot_maker.DotMaker import get_dots [as 别名]
def __init__(self, cfg, updater, ttreeview, ttree_paths, info_bar, theme,
dot_size):
super(TreeUpdater, self).__init__()
self.action_required = False
self.quit = False
self.cleared = True
self.autoexpand = True
self.count = 0
self.cfg = cfg
self.updater = updater
self.info_bar = info_bar
self.last_update_time = None
self.ancestors = {}
self.descendants = []
self.fam_state_summary = {}
self._prev_id_named_paths = {}
self._prev_data = {}
self._prev_fam_data = {}
self.autoexpand_states = [
'queued', 'ready', 'expired', 'submitted', 'running', 'failed']
self._last_autoexpand_me = []
# Dict of paths vs all descendant node states
self.ttree_paths = ttree_paths
self.should_group_families = ("text" not in self.cfg.ungrouped_views)
self.ttreeview = ttreeview
# Hierarchy of models: view <- sorted <- filtered <- base model
self.ttreestore = ttreeview.get_model().get_model().get_model()
self._prev_tooltip_task_id = None
if hasattr(self.ttreeview, "set_has_tooltip"):
self.ttreeview.set_has_tooltip(True)
try:
self.ttreeview.connect('query-tooltip',
self.on_query_tooltip)
except TypeError:
# Lower PyGTK version.
pass
# Cache the latest ETC calculation for active ids.
self._id_tetc_cache = {}
# Generate task state icons.
dotm = DotMaker(theme, size=dot_size)
self.dots = dotm.get_dots()
示例2: __init__
# 需要导入模块: from cylc.gui.dot_maker import DotMaker [as 别名]
# 或者: from cylc.gui.dot_maker.DotMaker import get_dots [as 别名]
def __init__(self, cfg, updater, treeview, info_bar, theme, dot_size):
super(DotUpdater, self).__init__()
self.quit = False
self.cleared = True
self.action_required = False
self.autoexpand = True
self.should_hide_headings = False
self.should_group_families = ("dot" not in cfg.ungrouped_views)
self.should_transpose_view = False
self.is_transposed = False
self.defn_order_on = True
self.cfg = cfg
self.updater = updater
self.theme = theme
self.info_bar = info_bar
self.last_update_time = None
self.state_summary = {}
self.fam_state_summary = {}
self.ancestors_pruned = {}
self.descendants = []
self.point_strings = []
self.led_headings = []
self.led_treeview = treeview
self.led_treestore = treeview.get_model()
self._prev_tooltip_task_id = None
if hasattr(self.led_treeview, "set_has_tooltip"):
self.led_treeview.set_has_tooltip(True)
try:
self.led_treeview.connect('query-tooltip',
self.on_query_tooltip)
except TypeError:
# Lower PyGTK version.
pass
self.task_list = []
self.family_tree = {}
self.expanded_rows = []
self.selected_rows = []
# generate task state icons
dotm = DotMaker(theme, size=dot_size)
self.dots = dotm.get_dots()