Changeset 43

Show
Ignore:
Timestamp:
02/08/04 11:23:47 (5 years ago)
Author:
ug
Message:

Changed mouse button bindings to mark relevant region

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 05/bugfix/kombilo.py

    r41 r43  
    9292        self.smartFixedColor = smartFixedColor 
    9393 
    94         if sys.platform.startswith('darwin'): 
    95             self.bound3 = self.bind('<M2-Button-1>', self.selStart) 
    96             self.bound3m = self.bind('<M2-B1-Motion>', self.selDrag) 
    97         else: 
    98             self.bound3 = self.bind('<Button-3>', self.selStart) 
    99             self.bound3m = self.bind('<B3-Motion>', self.selDrag) 
     94        self.boundM2_1 = self.bind('<M2-Button-1>', self.selStart) 
     95        self.boundM2_1m = self.bind('<M2-B1-Motion>', self.selDrag) 
     96        self.bound3 = self.bind('<Button-3>', self.selStart) 
     97        self.bound3m = self.bind('<B3-Motion>', self.selDrag) 
    10098        self.bounds1 = self.bind('<Shift-1>', self.wildcard) 
    10199 
     
    976974        b.unbind('<B3-Motion>', b.bound3m) 
    977975        b.unbind('<3>', b.bound3) 
     976        b.unbind('<M2-Button-1>', b.boundM2_1) 
     977        b.unbind('<M2-B1-Motion>', b.boundM2_1m) 
    978978        b.unbind('<Configure>', b.boundConf) 
    979979        b.bound3 = b.bind('<3>', lambda event, self=self, l = len(self.data): self.postMenu(event, l))