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)
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)