Ejemplo n.º 1
0
 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=[]
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def __init__(self, buddy):
     QLabel.__init__(self, buddy.LABEL)
     self.setBuddy(buddy)
     self.setAlignment(Qt.AlignRight|Qt.AlignVCenter)
Ejemplo n.º 5
0
 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)
Ejemplo n.º 6
0
 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)
Ejemplo n.º 7
0
 def __init__(self, parent):
     QLabel.__init__(self, parent)
Ejemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     QLabel.__init__(self, *args, **kwargs)
     self.setCursor(Qt.PointingHandCursor)
Ejemplo n.º 9
0
 def __init__(self, parent=None, **kwargs):
     QLabel.__init__(self, parent, **kwargs)
     self.setAcceptDrops(True)
     self.closed=True
     self.getupdate()
Ejemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     QLabel.__init__(self, *args, **kwargs)
     self.setCursor(Qt.PointingHandCursor)
Ejemplo n.º 11
0
 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)
Ejemplo n.º 12
0
 def __init__(self, parent):
     QLabel.__init__(self, parent)
Ejemplo n.º 13
0
 def __init__(self, parent=None, **kwargs):
     QLabel.__init__(self, parent, **kwargs)
     self.setAcceptDrops(True)
     self.closed = True
     self.getupdate()
Ejemplo n.º 14
0
 def __init__(self, buddy):
     QLabel.__init__(self, buddy.LABEL)
     self.setBuddy(buddy)
     self.setAlignment(Qt.AlignRight | Qt.AlignVCenter)