Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 447ae53

Browse files
committed
fix for 4.0
1 parent 9beefa2 commit 447ae53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Demo/tkinter/matt/canvas-with-scrollbars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def createWidgets(self):
3333
self.draw.scrollY = Scrollbar(self, {"orient" : "vertical"})
3434

3535
# now tie the three together. This is standard boilerplate text
36-
self.draw['xscroll'] = self.draw.scrollX.set
37-
self.draw['yscroll'] = self.draw.scrollY.set
36+
self.draw['xscrollcommand'] = self.draw.scrollX.set
37+
self.draw['yscrollcommand'] = self.draw.scrollY.set
3838
self.draw.scrollX['command'] = self.draw.xview
3939
self.draw.scrollY['command'] = self.draw.yview
4040

0 commit comments

Comments
 (0)