質問編集履歴

1

self.canvas.configureの無駄な処理を消しました。

2018/06/17 08:41

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -58,7 +58,7 @@
58
58
 
59
59
 
60
60
 
61
- self.canvas = Canvas(self.frame, width=200, height=200, bg='white', bd=4)
61
+ self.canvas = Canvas(self.frame, width=180, height=200, bg='white', bd=4)
62
62
 
63
63
  self.frame_ch = Frame(self.canvas, width=180, height=self.list_height)
64
64
 
@@ -96,9 +96,7 @@
96
96
 
97
97
  def canvas_config(self, event):
98
98
 
99
- self.canvas.configure(scrollregion=self.canvas.bbox("all"), width=180, \
99
+ self.canvas.configure(scrollregion=self.canvas.bbox("all"), height=self.list_height)
100
-
101
- height=self.list_height)
102
100
 
103
101
 
104
102