예제 #1
2
 def mouseDoubleClickEvent( self, event ):
     " Generates the doubleClicked signal "
     if event.button() == Qt.LeftButton:
         self.doubleClicked.emit()
     QLabel.mouseDoubleClickEvent( self, event )
     return
예제 #2
1
 def mouseDoubleClickEvent( self, event ):
     if event.button() == Qt.LeftButton:
         if self.__callback is None:
             txt = self.text().strip()
             if txt:
                 QApplication.clipboard().setText( txt )
         else:
             self.__callback()
     QLabel.mouseDoubleClickEvent( self, event )
     return
예제 #3
0
파일: widgets.py 프로젝트: maximerobin/Ufwi
 def mouseDoubleClickEvent(self, event):
     QLabel.mouseDoubleClickEvent(self, event)
     self.emit(SIGNAL('double click'))