update
This commit is contained in:
10
.CondaPkg/env/Lib/idlelib/sidebar.py
vendored
10
.CondaPkg/env/Lib/idlelib/sidebar.py
vendored
@@ -514,16 +514,16 @@ class ShellSidebar(BaseSideBar):
|
||||
self.change_callback()
|
||||
|
||||
|
||||
def _linenumbers_drag_scrolling(parent): # htest #
|
||||
def _sidebar_number_scrolling(parent): # htest #
|
||||
from idlelib.idle_test.test_sidebar import Dummy_editwin
|
||||
|
||||
toplevel = tk.Toplevel(parent)
|
||||
text_frame = tk.Frame(toplevel)
|
||||
top = tk.Toplevel(parent)
|
||||
text_frame = tk.Frame(top)
|
||||
text_frame.pack(side=tk.LEFT, fill=tk.BOTH, expand=True)
|
||||
text_frame.rowconfigure(1, weight=1)
|
||||
text_frame.columnconfigure(1, weight=1)
|
||||
|
||||
font = idleConf.GetFont(toplevel, 'main', 'EditorWindow')
|
||||
font = idleConf.GetFont(top, 'main', 'EditorWindow')
|
||||
text = tk.Text(text_frame, width=80, height=24, wrap=tk.NONE, font=font)
|
||||
text.grid(row=1, column=1, sticky=tk.NSEW)
|
||||
|
||||
@@ -541,4 +541,4 @@ if __name__ == '__main__':
|
||||
main('idlelib.idle_test.test_sidebar', verbosity=2, exit=False)
|
||||
|
||||
from idlelib.idle_test.htest import run
|
||||
run(_linenumbers_drag_scrolling)
|
||||
run(_sidebar_number_scrolling)
|
||||
|
||||
Reference in New Issue
Block a user