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)
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 )
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
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)
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
def __init__(self, *args,**kwargs): QtRecBase.__init__(self, origQtGui.QMenu, *args,**kwargs)