def __init__(self, parent=None, **kwargs): QLabel.__init__(self, parent, **kwargs) self.setAcceptDrops(True) self.x=self.parent() print(self.parent()) self.closed=True self.getupdate() self.sel_index=[]
def __init__(self, pixmap, opacity=0.40, parent=None): QLabel.__init__(self, parent) self.setAlignment(Qt.AlignTop|Qt.AlignLeft) self.setPixmap(pixmap) self.setWindowFlags(Qt.FramelessWindowHint|Qt.Dialog) self.setWindowOpacity(opacity) self.orig_size = pixmap.size() self.screen_geometry = QDesktopWidget().availableGeometry() self.old_geometry = QRect() #state variable self.isShrinked = False self.timer = QTimer(self) self.timer.setInterval(20) self.timer.timeout.connect(self.updatepos) self.timer.start()
def __init__(self, parent=None): QLabel.__init__(self, parent) self.setMinimumWidth(400) self.base_msg = '<h3>' + _('Choose a font family') + '</h3>' self.setText(self.base_msg) self.setWordWrap(True)
def __init__(self, buddy): QLabel.__init__(self, buddy.LABEL) self.setBuddy(buddy) self.setAlignment(Qt.AlignRight|Qt.AlignVCenter)
def __init__(self, parent, icon_name, size=16): QLabel.__init__(self, parent) pixmap = get_pixmap(icon_name) self.setPixmap(pixmap) self.setMaximumSize(size, size) self.setScaledContents(True)
def __init__(self, parent, icon_name, size=16): QLabel.__init__(self, parent) pixmap = get_pixmap(icon_name) self.setPixmap(pixmap) self.setMaximumSize(size, size) self.setScaledContents(True)
def __init__(self, parent): QLabel.__init__(self, parent)
def __init__(self, *args, **kwargs): QLabel.__init__(self, *args, **kwargs) self.setCursor(Qt.PointingHandCursor)
def __init__(self, parent=None, **kwargs): QLabel.__init__(self, parent, **kwargs) self.setAcceptDrops(True) self.closed=True self.getupdate()
def __init__(self, *args, **kwargs): QLabel.__init__(self, *args, **kwargs) self.setCursor(Qt.PointingHandCursor)
def __init__(self, parent=None): QLabel.__init__(self, parent) self.setMinimumWidth(400) self.base_msg = '<h3>'+_('Choose a font family')+'</h3>' self.setText(self.base_msg) self.setWordWrap(True)
def __init__(self, parent): QLabel.__init__(self, parent)
def __init__(self, parent=None, **kwargs): QLabel.__init__(self, parent, **kwargs) self.setAcceptDrops(True) self.closed = True self.getupdate()
def __init__(self, buddy): QLabel.__init__(self, buddy.LABEL) self.setBuddy(buddy) self.setAlignment(Qt.AlignRight | Qt.AlignVCenter)