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


Python lists.ModelListSlave類代碼示例

本文整理匯總了Python中stoqlib.gui.base.lists.ModelListSlave的典型用法代碼示例。如果您正苦於以下問題:Python ModelListSlave類的具體用法?Python ModelListSlave怎麽用?Python ModelListSlave使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: __init__

    def __init__(self, parent, store, product,
                 visual_mode=False, reuse_store=True):
        self._product = product
        ModelListSlave.__init__(self, parent, store=store,
                                reuse_store=reuse_store)
        if visual_mode:
            self.set_list_type(ListType.READONLY)

        self.refresh()
開發者ID:amaurihamasu,項目名稱:stoq,代碼行數:9,代碼來源:productslave.py

示例2: remove_item

    def remove_item(self, item):
        # If the test was used before in a production, it cannot be
        # removed
        if not item.can_remove():
            warning(_(u'You can not remove this test, since it\'s already '
                      'been used.'))
            return False

        return ModelListSlave.remove_item(self, item)
開發者ID:amaurihamasu,項目名稱:stoq,代碼行數:9,代碼來源:productslave.py

示例3: __init__

 def __init__(self, *args, **kwargs):
     ModelListSlave.__init__(self, *args, **kwargs)
     self.set_list_type(ListType.UNREMOVABLE)
開發者ID:hackedbellini,項目名稱:stoq,代碼行數:3,代碼來源:certificatedialog.py

示例4: __init__

 def __init__(self, client, parent, store):
     self._client = client
     ModelListSlave.__init__(self, parent, store)
     self.set_list_type(ListType.UNREMOVABLE)
開發者ID:Joaldino,項目名稱:stoq,代碼行數:4,代碼來源:opticalhistory.py

示例5: __init__

 def __init__(self, store, device, reuse_store=False):
     self.device = device
     ModelListSlave.__init__(self, store=store, reuse_store=reuse_store)
開發者ID:hackedbellini,項目名稱:stoq,代碼行數:3,代碼來源:paymentmethodeditor.py

示例6: edit_item

 def edit_item(self, item):
     if item.brand == 'virtual':
         info(_("Cant edit a virtual printer"))
         return False
     return ModelListSlave.edit_item(self, item)
開發者ID:,項目名稱:,代碼行數:5,代碼來源:

示例7: __init__

 def __init__(self, parent, store, reuse_store=False):
     ModelListSlave.__init__(self, parent, store, reuse_store=reuse_store)
     self.set_list_type(ListType.UNREMOVABLE)
開發者ID:,項目名稱:,代碼行數:3,代碼來源:

示例8: __init__

 def __init__(self, store, attribute):
     self._attribute = attribute
     ModelListSlave.__init__(self, store=store, reuse_store=True)
開發者ID:hackedbellini,項目名稱:stoq,代碼行數:3,代碼來源:grideditor.py

示例9: __init__

 def __init__(self, *args, **kwargs):
     ModelListSlave.__init__(self, *args, **kwargs)
     self.set_list_type(ListType.ADDONLY)
開發者ID:marianaanselmo,項目名稱:stoq,代碼行數:3,代碼來源:creditdialog.py

示例10: __init__

 def __init__(self, store, device):
     self.device = device
     ModelListSlave.__init__(self, store=store)
開發者ID:LeonamSilva,項目名稱:stoq,代碼行數:3,代碼來源:paymentmethodeditor.py

示例11: delete_model

 def delete_model(self, model, store):
     for field in model.fields:
         store.remove(field)
     ModelListSlave.delete_model(self, model, store)
開發者ID:,項目名稱:,代碼行數:4,代碼來源:


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