This commit is contained in:
ton
2024-10-07 10:13:40 +07:00
parent aa1631742f
commit 3a7d696db6
9729 changed files with 1832837 additions and 161742 deletions

View File

@@ -132,6 +132,7 @@ def _scrolled_list(parent): # htest #
top = Toplevel(parent)
x, y = map(int, parent.geometry().split('+')[1:])
top.geometry("+%d+%d" % (x+200, y + 175))
class MyScrolledList(ScrolledList):
def fill_menu(self): self.menu.add_command(label="right click")
def on_select(self, index): print("select", self.get(index))
@@ -141,9 +142,10 @@ def _scrolled_list(parent): # htest #
for i in range(30):
scrolled_list.append("Item %02d" % i)
if __name__ == '__main__':
from unittest import main
main('idlelib.idle_test.test_scrolledlist', verbosity=2,)
main('idlelib.idle_test.test_scrolledlist', verbosity=2, exit=False)
from idlelib.idle_test.htest import run
run(_scrolled_list)