8000 gh-120633: Move scrollbar and remove tear-off menus in turtledemo (#1… · python/cpython@89f7208 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89f7208

Browse files
gh-120633: Move scrollbar and remove tear-off menus in turtledemo (#120634)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent a0dce37 commit 89f7208

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Lib/turtledemo/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def makeTextFrame(self, root):
216216

217217
self.vbar = vbar = Scrollbar(text_frame, name='vbar')
218218
vbar['command'] = text.yview
219-
vbar.pack(side=LEFT, fill=Y)
219+
vbar.pack(side=RIGHT, fill=Y)
220220
self.hbar = hbar = Scrollbar(text_frame, name='hbar', orient=HORIZONTAL)
221221
hbar['command'] = text.xview
222222
hbar.pack(side=BOTTOM, fill=X)
@@ -292,7 +292,7 @@ def configGUI(self, start, stop, clear, txt="", color="blue"):
292292
self.output_lbl.config(text=txt, fg=color)
293293

294294
def makeLoadDemoMenu(self, master):
295-
menu = Menu(master)
295+
menu = Menu(master, tearoff=1) # TJR: leave this one.
296296

297297
for entry in getExampleEntries():
298298
def load(entry=entry):
@@ -302,7 +302,7 @@ def load(entry=entry):
302302
return menu
303303

304304
def makeFontMenu(self, master):
305-
menu = Menu(master)
305+
menu = Menu(master, tearoff=0)
306306
menu.add_command(label="Decrease (C-'-')", command=self.decrease_size,
307307
font=menufont)
308308
menu.add_command(label="Increase (C-'+')", command=self.increase_size,
@@ -317,7 +317,7 @@ def resize(size=size):
317317
return menu
318318

319319
def makeHelpMenu(self, master):
320-
menu = Menu(master)
320+
menu = Menu(master, tearoff=0)
321321

322322
for help_label, help_file in help_entries:
323323
def show(help_label=help_label, help_file=help_file):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move scrollbar and remove tear-off menus in turtledemo.

0 commit comments

Comments
 (0)
0