+ self.reaffiche()
+
+
+ def keyPressEvent(self, event):
+ if event.key() == Qt.Key_Right : self.selectSuivant(); return
+ if event.key() == Qt.Key_Left : self.selectPrecedent(); return
+ QWidget.keyPressEvent(self,event)
+
+ def selectSuivant(self):
+ aLeFocus=self.focusWidget()
+ nom=aLeFocus.objectName()[12:]
+ i=nom.toInt()[0]+1
+ if i == len(self.maListeDeValeur) +1 : i=1
+ nomBouton="radioButton_"+str(i)
+ courant=getattr(self,nomBouton)
+ courant.setFocus(True)
+
+ def selectPrecedent(self):
+ aLeFocus=self.focusWidget()
+ nom=aLeFocus.objectName()[12:]
+ i=nom.toInt()[0]-1
+ if i == 0 : i= len(self.maListeDeValeur)
+ nomBouton="radioButton_"+str(i)
+ courant=getattr(self,nomBouton)
+ courant.setFocus(True)
+