Пример #1
0
 def __init__(self, model, index, amount):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
     self.__amount = amount
     self.__oldList = None
     self.__oldHeader = None
Пример #2
0
 def __init__(self, model, index, amount):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
     self.__amount = amount
     self.__oldList = None
     self.__oldHeader = None
Пример #3
0
 def __init__(self, model, index):
     """
     :param model: QTableModel
     :param index: QModelIndex
     :param amount: int
     :return: None
     """
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
Пример #4
0
	def __init__(self, widget, init_value, node, mw, description):
		QUndoCommand.__init__(self, description)
		self._widget = widget
		if hasattr(widget, "value"):
			self._current_value = widget.value()
		else:
			self._current_value = widget.text()
		self._init_value = init_value
		self._node = node
		self._mw = mw
		self.first_time = True
Пример #5
0
 def __init__(self, model, index):
     """
     :param model: QTableModel
     :param index: QModelIndex
     :return: None
     """
     QUndoCommand.__init__(self)
     self.__newValue = None
     self.__model = model
     self.__index = index
     self.__oldValue = None
Пример #6
0
 def __init__(self, model, index):
     """
     :param model: QTableModel
     :param index: QModelIndex
     :return: None
     """
     QUndoCommand.__init__(self)
     self.__newValue = None
     self.__model = model
     self.__index = index
     self.__oldValue = None
Пример #7
0
 def __init__(self, model, index):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
Пример #8
0
 def __init__(self, model, index, amount):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
     self.__amount = amount
Пример #9
0
 def __init__(self, model, index):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
Пример #10
0
 def __init__(self, model, index, amount):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
     self.__amount = amount
Пример #11
0
 def __init__(self, model, index):
     QUndoCommand.__init__(self)
     self.__newValue = None
     self.__model = model
     self.__index = index
     self.__oldValue = None
Пример #12
0
 def __init__(self, model, index):
     QUndoCommand.__init__(self)
     self.newValue = None
     self.model = model
     self.index = index
     self.oldValue = None
Пример #13
0
 def __init__(self, model, row):
     QUndoCommand.__init__(self)
     self.model = model
     self.row = row
     self.oldList = None
     self.oldHeader = None
Пример #14
0
 def __init__(self, model, row):
     QUndoCommand.__init__(self)
     self.model = model
     self.row = row
Пример #15
0
 def __init__(self, model, index):
     QUndoCommand.__init__(self)
     self.__model = model
     self.__index = index
     self.__last_row = list(model.getContent()[index])