Kaydet (Commit) e7571856 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix initial fill color of square

.,
üst 1e9e400b
...@@ -26,7 +26,7 @@ class Stuff(Canvas): ...@@ -26,7 +26,7 @@ class Stuff(Canvas):
{'width': 100, 'height': 100}) {'width': 100, 'height': 100})
Canvas.config(self, cnf) Canvas.config(self, cnf)
self.create_rectangle(30, 30, 70, 70, self.create_rectangle(30, 30, 70, 70,
{'fill': 'red', 'tags': 'box'}) {'fill': 'blue', 'tags': 'box'})
Canvas.bind(self, 'box', '<Enter>', self.enter) Canvas.bind(self, 'box', '<Enter>', self.enter)
Canvas.bind(self, 'box', '<Leave>', self.leave) Canvas.bind(self, 'box', '<Leave>', self.leave)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment