obtenir les valeurs des options-curseurs
Bonjour
Afin de gérer les options (from_ et to) du curseur suivant,
j'ai essayé, mais çà ne passe pas
fromdo=self.sca[o].cget(from_) et aussi avec les apostrophes ('from_')
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
# Définition des curseurs
def scanote1(self,xc):
do=int(xc)
xsi=self.sca[6].get()
xre=self.sca[1].get()
# Initialise sca[7](from_)
fromhu=-6-do
self.sca[7].configure(from_ = fromhu)
if do<xsi:self.sca[6].set(do)
if do>xre+1 :self.sca[1].set(do-1)
# scanote1() |
merci