当前位置: 首页>>代码示例>>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;未经允许,请勿转载。