Exemple #1
0
 def setEnabled(self, enabled):
     if self.isEnabled() != enabled:
         self.fPixmap.load("./bitmaps/dial_%s%s.png" % (self.fPixmapNum, "" if enabled else "d"))
         self.updateSizes()
         self.update()
     QDial.setEnabled(self, enabled)
Exemple #2
0
 def setEnabled(self, enabled):
     if self.isEnabled() != enabled:
         self.m_pixmap.load(":/bitmaps/dial_%s%s.png" % (self.m_pixmap_n_str, "" if enabled else "d"))
         self.updateSizes()
         self.update()
     QDial.setEnabled(self, enabled)