]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Instead of single clicks, use double clicks to get the instance window.
authorSjoerd Mullender <sjoerd@acm.org>
Fri, 1 Oct 1993 14:39:45 +0000 (14:39 +0000)
committerSjoerd Mullender <sjoerd@acm.org>
Fri, 1 Oct 1993 14:39:45 +0000 (14:39 +0000)
Lib/lib-stdwin/wdbframewin.py
Lib/stdwin/wdbframewin.py

index 3a7f6fed4f56397f7e8874a9bed7fd35b0cd4178..db3d1379b05f87e3c46fbe1606eb05858baabbab 100644 (file)
@@ -63,6 +63,8 @@ class FrameWindow(basewin.BaseWindow):
        
        def mouse_down(self, detail):
                (h, v), clicks, button, mask = detail
+               if clicks != 2:
+                       return
                i = v / stdwin.lineheight()
                if 5 <= i < len(self.displaylist):
                        import string
index 3a7f6fed4f56397f7e8874a9bed7fd35b0cd4178..db3d1379b05f87e3c46fbe1606eb05858baabbab 100755 (executable)
@@ -63,6 +63,8 @@ class FrameWindow(basewin.BaseWindow):
        
        def mouse_down(self, detail):
                (h, v), clicks, button, mask = detail
+               if clicks != 2:
+                       return
                i = v / stdwin.lineheight()
                if 5 <= i < len(self.displaylist):
                        import string