mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Refine geometry of idlelib htests (and a few other fix-ups).
This commit is contained in:
parent
cd5e388c39
commit
a748032653
19 changed files with 52 additions and 58 deletions
|
@ -127,8 +127,8 @@ class ScrolledList:
|
|||
|
||||
def _scrolled_list(parent): # htest #
|
||||
top = Toplevel(parent)
|
||||
width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
|
||||
top.geometry("+%d+%d"%(x+200, y + 175))
|
||||
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue