質問編集履歴

2

#指摘を頂き変更

2021/02/23 09:02

投稿

Yuiti628
Yuiti628

スコア71

test CHANGED
File without changes
test CHANGED
@@ -68,9 +68,11 @@
68
68
 
69
69
 
70
70
 
71
-
71
+      #指摘を頂き変更
72
72
 
73
- canvas = Canvas(frm, width=400, height=150 ,bg="red",scrollregion=(0,0,400,400))
73
+ #canvas = Canvas(frm, width=400, height=150 ,bg="red",scrollregion=(0,0,400,400))
74
+
75
+ canvas = Canvas(frm, width=400, height=150 ,bg="red")
74
76
 
75
77
 
76
78
 
@@ -128,6 +130,12 @@
128
130
 
129
131
 
130
132
 
133
+     #指摘を頂き追加
134
+
135
+     canvas.update_idletasks()
136
+
137
+     canvas.config(scrollregion=canvas.bbox("all"))
138
+
131
139
 
132
140
 
133
141
 

1

bar.grid(row=0, column=1, sticky="ns")

2021/02/23 09:02

投稿

Yuiti628
Yuiti628

スコア71

test CHANGED
File without changes
test CHANGED
@@ -78,7 +78,11 @@
78
78
 
79
79
  bar = Scrollbar(frm, orient=VERTICAL)
80
80
 
81
+ # 指摘を頂き修正
82
+
81
- bar.grid(row=0, column=1, sticky="nw")
83
+ #bar.grid(row=0, column=1, sticky="nw")
84
+
85
+ bar.grid(row=0, column=1, sticky="ns")
82
86
 
83
87
  bar.config(command=canvas.yview)
84
88