當前位置: 首頁>>代碼示例>>Python>>正文


Python TableWdg.set_search_limit方法代碼示例

本文整理匯總了Python中pyasm.widget.TableWdg.set_search_limit方法的典型用法代碼示例。如果您正苦於以下問題:Python TableWdg.set_search_limit方法的具體用法?Python TableWdg.set_search_limit怎麽用?Python TableWdg.set_search_limit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pyasm.widget.TableWdg的用法示例。


在下文中一共展示了TableWdg.set_search_limit方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: get_storyboard_wdg

# 需要導入模塊: from pyasm.widget import TableWdg [as 別名]
# 或者: from pyasm.widget.TableWdg import set_search_limit [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
開發者ID:mincau,項目名稱:TACTIC,代碼行數:39,代碼來源:preprod_tab_wdg.py


注:本文中的pyasm.widget.TableWdg.set_search_limit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。