Example #1
0
	def __init__(self, *args,**kwargs):
		QtRecBase.__init__(self, origQtGui.QSlider, *args,**kwargs)
		self.logSliderMoved = self.createLogEvent(
			self.setSliderPosition,
			init=self.sliderPosition(),
			override=True)
		self.sliderMoved.connect(self.logSliderMoved)
Example #2
0
	def __init__(self, pClass, *args,**kwargs):
		QtRecBase.__init__(self,pClass, *args,**kwargs)
		self.resizeEvent = self.createLogEvent(
			self.setGeometry,
			lambda: self.geometry().getRect(),
			init=self.geometry().getRect(),
			override=True )
		self.moveEvent = self.createLogEvent(
			self.move,
			lambda evt: (evt.pos().x(),evt.pos().y()),
			init=(self.pos().x(), self.pos().y()),
			override=True )
Example #3
0
	def __init__(self, *args, **kwargs):
		'''logs changing cell contents '''
		QtRecBase.__init__(self, origQtGui.QTableWidget, *args,**kwargs)
		self._registered_cells = []
		self.cellChanged.connect(self.logCellChanged)
		self.save_only_last_log = False
Example #4
0
	def __init__(self, *args, **kwargs):
		QtRecBase.__init__(self, origQtGui.QLineEdit, *args,**kwargs)
		self.logTextChanged = self.createLogEvent(self.setText, init=self.text(), override=True)
		self.textChanged.connect(self.logTextChanged)
Example #5
0
	def __init__(self,pclass, *args,**kwargs):
		QtRecBase.__init__(self, pclass, *args,**kwargs)
		self.logClicked = self.createLogEvent(self.click)
		self.clicked.connect(self.logClicked)
		self.save_only_last_log = False #not usefull for buttons
Example #6
0
	def __init__(self, *args,**kwargs):
		QtRecBase.__init__(self, origQtGui.QMenu, *args,**kwargs)