本文整理汇总了Python中pyasm.widget.TableWdg.set_class方法的典型用法代码示例。如果您正苦于以下问题:Python TableWdg.set_class方法的具体用法?Python TableWdg.set_class怎么用?Python TableWdg.set_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyasm.widget.TableWdg
的用法示例。
在下文中一共展示了TableWdg.set_class方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _get_sobject_wdg
# 需要导入模块: from pyasm.widget import TableWdg [as 别名]
# 或者: from pyasm.widget.TableWdg import set_class [as 别名]
def _get_sobject_wdg(my, search_type):
widget = Widget()
if search_type =="flash/nat_pause":
widget.add(HelpItemWdg('Nat Pause tab', '/doc/flash/nat_pause_tab.html', is_link=True))
div = DivWdg(css="filter_box")
episode_filter = EpisodeNavigatorWdg()
div.add(episode_filter)
div.add(SearchLimitWdg())
widget.add(div)
table = TableWdg(search_type)
table.set_class("table")
widget.add(table)
search = Search(search_type)
episode_code = episode_filter.get_value()
if episode_code:
search.add_filter("episode_code", episode_filter.get_value())
widget.set_search(search)
return widget
示例2: get_storyboard_wdg
# 需要导入模块: from pyasm.widget import TableWdg [as 别名]
# 或者: from pyasm.widget.TableWdg import set_class [as 别名]
def get_storyboard_wdg(self):
widget = Widget()
help = HelpItemWdg('Storyboards', 'Storyboards tab lets the user organize storyboards. You are only required to [Insert] once per shot. Subsequent versions of the storyboard should be published via the [Publish] button.')
self.add(help)
div = DivWdg(css="filter_box")
sequence_filter = SequenceFilterWdg()
epi_code, sequence_code = sequence_filter.get_value()
div.add(sequence_filter)
columns = ['code','shot_code']
search_filter = SearchFilterWdg("storyboard_search", columns=columns,\
has_persistence=False)
div.add(search_filter)
widget.add(div)
# create a search
search = Search("prod/storyboard")
if sequence_code:
search.add_where("shot_code in (select code from shot where sequence_code = '%s')" % sequence_code)
table = TableWdg("prod/storyboard")
table.set_class("table")
table.set_search_limit(25)
table.set_search(search)
widget.add(table)
return widget
示例3: get_script_wdg
# 需要导入模块: from pyasm.widget import TableWdg [as 别名]
# 或者: from pyasm.widget.TableWdg import set_class [as 别名]
def get_script_wdg(self):
table = TableWdg("prod/script")
table.set_class("table")
search = Search("prod/script")
table.set_search(search)
return table