]> granicus.if.org Git - python/commitdiff
Issue #24782: Limit width of canvas and hence IDLE settings dialog.
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 22 Oct 2015 07:27:31 +0000 (03:27 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Thu, 22 Oct 2015 07:27:31 +0000 (03:27 -0400)
Lib/idlelib/configDialog.py

index 3aa66721005ec0bc18f91b6fcd09371e80a7310b..f5388178e0ecfe9ee0a6204bf49abeb377a599cf 100644 (file)
@@ -1389,7 +1389,7 @@ class VerticalScrolledFrame(Frame):
         vscrollbar = Scrollbar(self, orient=VERTICAL)
         vscrollbar.pack(fill=Y, side=RIGHT, expand=FALSE)
         canvas = Canvas(self, bd=0, highlightthickness=0,
-                        yscrollcommand=vscrollbar.set)
+                        yscrollcommand=vscrollbar.set, width=240)
         canvas.pack(side=LEFT, fill=BOTH, expand=TRUE)
         vscrollbar.config(command=canvas.yview)