PEATDB/PEATTables.py
def do_bindings(self):
        """Bind keys and mouse clicks - overriden"""
        self.bind("<Button-1>",self.handle_left_click)
        self.bind("<Double-Button-1>",self.handle_double_click)
        self.bind("<Control-Button-1>", self.handle_left_ctrl_click)
        self.bind("<Shift-Button-1>", self.handle_left_shift_click)

        self.bind("<ButtonRelease-1>", self.handle_left_release)
        if self.ostyp=='mac':
            #For mac we bind Shift, left-click to right click
            self.bind("<Button-2>", self.handle_right_click)
            self.bind('<Shift-Button-1>',self.handle_right_click)
        else:
            self.bind("<Button-3>", self.handle_right_click)

        self.bind('<B1-Motion>', self.handle_mouse_drag)
        self.bind('<Motion>', self.handle_motion)
        self.bind("<Tab>", self.gotonextCell)

        self.bind("<Control-x>", self.delete_Row)
        self.bind("<Control-n>", self.add_Row)
        self.bind("<Delete>", self.delete_Cells)
        #bind to parentapp instead of parentframe for PEAT
        self.parentapp.master.bind("<Right>", self.handle_arrow_keys)
        self.parentapp.master.bind("<Left>", self.handle_arrow_keys)
        self.parentapp.master.bind("<Up>", self.handle_arrow_keys)
        self.parentapp.master.bind("<Down>", self.handle_arrow_keys)
        self.parentapp.master.bind("<KP_8>", self.handle_arrow_keys)

        self.parentframe.master.bind("<Return>", self.handle_arrow_keys)
        self.parentframe.master.bind("<Tab>", self.handle_arrow_keys)
        if 'windows' in self.platform:
            self.bind("<MouseWheel>", self.mouse_wheel)
        self.bind('<Button-4>', self.mouse_wheel)
        self.bind('<Button-5>', self.mouse_wheel)
        return
Bind keys and mouse clicks - overriden
Bind keys and mouse clicks - overriden
Bind keys and mouse clicks - overriden
def do_bindings(self):
        self.bind("<Button-1>",self.handle_left_click)
        self.bind("<Double-Button-1>",self.handle_double_click)
        self.bind("<Control-Button-1>", self.handle_left_ctrl_click)
        self.bind("<Shift-Button-1>", self.handle_left_shift_click)
        self.bind("<ButtonRelease-1>", self.handle_left_release)
        if self.ostyp=='mac':
            self.bind("<Button-2>", self.handle_right_click)
            self.bind('<Shift-Button-1>',self.handle_right_click)
        else:
            self.bind("<Button-3>", self.handle_right_click)
        self.bind('<B1-Motion>', self.handle_mouse_drag)
        self.bind('<Motion>', self.handle_motion)
        self.bind("<Tab>", self.gotonextCell)
        self.bind("<Control-x>", self.delete_Row)
        self.bind("<Control-n>", self.add_Row)
        self.bind("<Delete>", self.delete_Cells)
        self.parentapp.master.bind("<Right>", self.handle_arrow_keys)
        self.parentapp.master.bind("<Left>", self.handle_arrow_keys)
        self.parentapp.master.bind("<Up>", self.handle_arrow_keys)
        self.parentapp.master.bind("<Down>", self.handle_arrow_keys)
        self.parentapp.master.bind("<KP_8>", self.handle_arrow_keys)
        self.parentframe.master.bind("<Return>", self.handle_arrow_keys)
        self.parentframe.master.bind("<Tab>", self.handle_arrow_keys)
        if 'windows' in self.platform:
            self.bind("<MouseWheel>", self.mouse_wheel)
        self.bind('<Button-4>', self.mouse_wheel)
        self.bind('<Button-5>', self.mouse_wheel)
        return
def do_bindings ( self ) : self . bind ( "<Button-1>" , self . handle_left_click ) self . bind ( "<Double-Button-1>" , self . handle_double_click ) self . bind ( "<Control-Button-1>" , self . handle_left_ctrl_click ) self . bind ( "<Shift-Button-1>" , self . handle_left_shift_click ) self . bind ( "<ButtonRelease-1>" , self . handle_left_release ) if self . ostyp == 'mac' : self . bind ( "<Button-2>" , self . handle_right_click ) self . bind ( '<Shift-Button-1>' , self . handle_right_click ) else : self . bind ( "<Button-3>" , self . handle_right_click ) self . bind ( '<B1-Motion>' , self . handle_mouse_drag ) self . bind ( '<Motion>' , self . handle_motion ) self . bind ( "<Tab>" , self . gotonextCell ) self . bind ( "<Control-x>" , self . delete_Row ) self . bind ( "<Control-n>" , self . add_Row ) self . bind ( "<Delete>" , self . delete_Cells ) self . parentapp . master . bind ( "<Right>" , self . handle_arrow_keys ) self . parentapp . master . bind ( "<Left>" , self . handle_arrow_keys ) self . parentapp . master . bind ( "<Up>" , self . handle_arrow_keys ) self . parentapp . master . bind ( "<Down>" , self . handle_arrow_keys ) self . parentapp . master . bind ( "<KP_8>" , self . handle_arrow_keys ) self . parentframe . master . bind ( "<Return>" , self . handle_arrow_keys ) self . parentframe . master . bind ( "<Tab>" , self . handle_arrow_keys ) if 'windows' in self . platform : self . bind ( "<MouseWheel>" , self . mouse_wheel ) self . bind ( '<Button-4>' , self . mouse_wheel ) self . bind ( '<Button-5>' , self . mouse_wheel ) return
Bind keys and mouse clicks - overriden
Bind keys and mouse clicks - overriden
"""Bind keys and mouse clicks - overriden""" #For mac we bind Shift, left-click to right click #bind to parentapp instead of parentframe for PEAT
self