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


Python QtCore.QAbstractTableModel方法代碼示例

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


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

示例1: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, controller, cves = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__cves = cves
        self.__controller = controller
        self.columnMapping = {
            0: "name",
            1: "severity",
            2: "product",
            3: "version",
            4: "url",
            5: "source",
            6: "exploitId",
            7: "exploit",
            8: "exploitUrl"
        } 
開發者ID:GoVanguard,項目名稱:legion,代碼行數:18,代碼來源:cvemodels.py

示例2: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, datain, headerdata, parent=None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.arraydata = datain
        self.headerdata = headerdata 
開發者ID:andreafioraldi,項目名稱:IDAngr,代碼行數:6,代碼來源:main_gui.py

示例3: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, sandbox, *args, **kwargs):
        QtCore.QAbstractTableModel.__init__(self, *args, **kwargs)

        self.sandbox = sandbox
        self.selection_model = None
        self._createSources()

        self.sandbox.sigModelUpdated.connect(
            self.modelUpdated)
        self.sandbox.sigModelChanged.connect(
            self.modelChanged) 
開發者ID:pyrocko,項目名稱:kite,代碼行數:13,代碼來源:sandbox_model.py

示例4: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, model, *args, **kwargs):
        QtCore.QAbstractTableModel.__init__(self, *args, **kwargs)
        logging.Handler.__init__(self)

        self.log_records = []
        self.app = None
        self.model = model
        self.model.sigLogRecord.connect(self.newRecord) 
開發者ID:pyrocko,項目名稱:kite,代碼行數:10,代碼來源:qt_utils.py

示例5: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, controller, scripts = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__scripts = scripts
        self.__controller = controller 
開發者ID:GoVanguard,項目名稱:legion,代碼行數:7,代碼來源:scriptmodels.py

示例6: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, hosts = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__hosts = hosts 
開發者ID:GoVanguard,項目名稱:legion,代碼行數:6,代碼來源:hostmodels.py

示例7: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, controller, processes = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__processes = processes
        self.__controller = controller 
開發者ID:GoVanguard,項目名稱:legion,代碼行數:7,代碼來源:processmodels.py

示例8: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, services = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__services = services 
開發者ID:GoVanguard,項目名稱:legion,代碼行數:6,代碼來源:servicemodels.py

示例9: __init__

# 需要導入模塊: from PyQt5 import QtCore [as 別名]
# 或者: from PyQt5.QtCore import QAbstractTableModel [as 別名]
def __init__(self, parent, *args) -> None:
        QtCore.QAbstractTableModel.__init__(self, parent, *args)
        ActiveApplications.__init__(self)
        self.header = []
        self._sorted_keys = []
        self._sort_col = 0 
開發者ID:frans-fuerst,項目名稱:track,代碼行數:8,代碼來源:active_applications_qtmodel.py


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