diff --git a/Demo/tkinter/matt/canvas-with-scrollbars.py b/Demo/tkinter/matt/canvas-with-scrollbars.py index fcbcd151a62..d2498222ee0 100644 --- a/Demo/tkinter/matt/canvas-with-scrollbars.py +++ b/Demo/tkinter/matt/canvas-with-scrollbars.py @@ -33,8 +33,8 @@ def createWidgets(self): self.draw.scrollY = Scrollbar(self, {"orient" : "vertical"}) # now tie the three together. This is standard boilerplate text - self.draw['xscroll'] = self.draw.scrollX.set - self.draw['yscroll'] = self.draw.scrollY.set + self.draw['xscrollcommand'] = self.draw.scrollX.set + self.draw['yscrollcommand'] = self.draw.scrollY.set self.draw.scrollX['command'] = self.draw.xview self.draw.scrollY['command'] = self.draw.yview