Skip to content
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
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.