Skip to content
Snippets Groups Projects
Commit 528ede9f authored by Jdrezen's avatar Jdrezen
Browse files

Fix du scale

parent 6657e15c
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,8 @@ class PanelCommandes(LabelFrame): ...@@ -27,9 +27,8 @@ class PanelCommandes(LabelFrame):
frameBoutons = Frame(self) frameBoutons = Frame(self)
frameBoutons.pack(side='bottom',fill='x') frameBoutons.pack(side='bottom',fill='x')
slider = Scale(frameBoutons,orient='horizontal',from_=1,to=10,command=self.notifyObserverAboutScale) self.__slider = Scale(frameBoutons,orient='horizontal',from_=1,to=10,command=self.notifyObserverAboutScale)
slider.set(10) self.__slider.pack(side='bottom',fill='x')
slider.pack(side='bottom',fill='x')
bouttonPlus = Button(frameBoutons,text='+',command=self.plus) bouttonPlus = Button(frameBoutons,text='+',command=self.plus)
bouttonPlus.pack(side='right') bouttonPlus.pack(side='right')
...@@ -48,6 +47,7 @@ class PanelCommandes(LabelFrame): ...@@ -48,6 +47,7 @@ class PanelCommandes(LabelFrame):
""" """
def attach(self, observer : 'Controleur') -> None: def attach(self, observer : 'Controleur') -> None:
self.__observer = observer self.__observer = observer
self.__slider.set(10)
""" """
Notify the observer that the Start.Stop button was pressed Notify the observer that the Start.Stop button was pressed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment