diff --git a/Tools/idle/Separator.py b/Tools/idle/Separator.py index 26cdf6c7910..2645e57a37e 100644 --- a/Tools/idle/Separator.py +++ b/Tools/idle/Separator.py @@ -45,6 +45,7 @@ def divider_press(self, event): f[dim] = getattr(f, "winfo_"+dim)() self.div.bind("", self.div_motion) self.div.bind("", self.div_release) + self.div.grab_set() def div_motion(self, event): delta = getattr(event, self.dir) - getattr(self.press_event, self.dir) @@ -61,6 +62,7 @@ def div_motion(self, event): def div_release(self, event): self.div_motion(event) self.div.unbind("") + self.div.grab_release() class VSeparator(Separator): @@ -84,6 +86,7 @@ def main(): tlist.append(t) tlist[0].insert("1.0", "Make your own Mondrian!") tlist[1].insert("1.0", "Move the colored dividers...") + root.mainloop() if __name__ == '__main__': main()