Beispiel #1
0
 def __init__(self, parent, itemsDict, column):
     """
     Constructor
     """
     QItemDelegate.__init__(self, parent)
     self.itemsDict = itemsDict
     self.column = column
Beispiel #2
0
    def __init__(self, data, options, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param spatial_unit: The current spatial unit.
        :param type: Object
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)
        self.data = data
        self.options = options

        self._view = parent
Beispiel #3
0
    def __init__(self, spatial_unit, parent=None):
        """
        Initializes STRTypeDelegate and QItemDelegate.
        :param spatial_unit: The current spatial unit.
        :param type: Object
        :param parent: The parent of the item delegate.
        :type parent: QWidget
        """
        QItemDelegate.__init__(self, parent)

        self.curr_profile = current_profile()

        self.social_tenure = self.curr_profile.social_tenure
        self.spatial_unit = spatial_unit
 def __init__(self, field_types, parent=None):
     QItemDelegate.__init__(self, parent)
     self.fieldTypes = field_types
Beispiel #5
0
 def __init__(self, field_types, parent=None):
     QItemDelegate.__init__(self, parent)
     self.fieldTypes = field_types
Beispiel #6
0
 def __init__(self, parent=None):
     QItemDelegate.__init__(self, parent)
 def __init__(self, parent, itemList, defaultItem = ""):
     QItemDelegate.__init__(self, parent)
     self.itemList = itemList
     self.defaultItem = defaultItem
 def __init__(self, parent, functionOwner):
     QItemDelegate.__init__(self, parent)
     self.functionOwner = functionOwner