8000 gh-120633: Remove tear-off menu feature in `turtledemo` by Wulian233 · Pull Request #120634 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120633: Remove tear-off menu feature in turtledemo #120634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Lib/turtledemo/__main__.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def makeTextFrame(self, root):

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

def makeLoadDemoMenu(self, master):
menu = Menu(master)
menu = Menu(master, tearoff=1) # TJR: leave this one.

for entry in getExampleEntries():
def load(entry=entry):
Expand All @@ -302,7 +302,7 @@ def load(entry=entry):
return menu

def makeFontMenu(self, master):
menu = Menu(master)
menu = Menu(master, tearoff=0)
menu.add_command(label="Decrease (C-'-')", command=self.decrease_size,
font=menufont)
menu.add_command(label="Increase (C-'+')", command=self.increase_size,
Expand All @@ -317,7 +317,7 @@ def resize(size=size):
return menu

def makeHelpMenu(self, master):
menu = Menu(master)
menu = Menu(master, tearoff=0)

for help_label, help_file in help_entries:
def show(help_label=help_label, help_file=help_file):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move scrollbar and remove tear-off menus in turtledemo.
Loading
0