本文整理汇总了Python中UI.flow_picker方法的典型用法代码示例。如果您正苦于以下问题:Python UI.flow_picker方法的具体用法?Python UI.flow_picker怎么用?Python UI.flow_picker使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI.flow_picker方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: contract
# 需要导入模块: import UI [as 别名]
# 或者: from UI import flow_picker [as 别名]
def contract(_):
"""Shrink the filter view."""
global is_expanded
is_expanded = False
wid["expand_frame"].grid_remove()
snd.fx("contract")
UI.flow_picker()
示例2: filter_items
# 需要导入模块: import UI [as 别名]
# 或者: from UI import flow_picker [as 别名]
def filter_items():
"""Update items based on selected tags."""
show_wip = optionWindow.SHOW_WIP.get()
style_unlocked = StyleVarPane.tk_vars['UnlockDefault'].get() == 1
# any() or all()
func = TAG_MODES[TAG_MODE.get()]
sel_tags = [
tag
for tag, enabled
in TAGS.items()
if enabled
]
no_tags = len(sel_tags) == 0
for item in UI.pal_items:
if item.needs_unlock and not style_unlocked:
item.visible = False
continue
if item.item.is_wip and not show_wip:
item.visible = False
continue
if no_tags:
item.visible = True
else:
item_tags = item.item.filter_tags
item.visible = func(
tag in item_tags
for tag in
sel_tags
)
UI.flow_picker()
示例3: expand
# 需要导入模块: import UI [as 别名]
# 或者: from UI import flow_picker [as 别名]
def expand(_):
"""Expand the filter view."""
global is_expanded
is_expanded = True
wid["expand_frame"].grid(row=2, column=0, columnspan=2, sticky="NSEW")
wid["tag_list"]["height"] = TK_ROOT.winfo_height() / 48
snd.fx("expand")
UI.flow_picker()
示例4: expand
# 需要导入模块: import UI [as 别名]
# 或者: from UI import flow_picker [as 别名]
def expand(_):
"""Expand the filter view."""
global is_expanded
is_expanded = True
wid['expand_frame'].grid(
row=2,
column=0,
columnspan=2,
sticky='NSEW',
)
wid['tag_list']['height'] = TK_ROOT.winfo_height() / 48
snd.fx('expand')
UI.flow_picker()