Mouse modes

From PyMOLWiki
Revision as of 12:35, 18 June 2005 by Inchoate (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Add the code below to the file mouse_modes.py and run it from within pymol.

After you run it, click on the mouse mode indicator to cycle it at least one time in order to get the new bindings.

Replace ['three_button_viewing'] by ['three_button_editing'] to edit the 3-Button Editing mode.

mouse_modes.py

from pymol.controlling import ring_dict,mode_name_dict,mode_dict

# redefine the three_button_viewing mode
mode_name_dict['three_button_viewing'] = 'My 3-But View'
mode_dict['three_button_viewing'] =  [ ('l','none','rota'),
                      ('m','none','move'),
                      ('r','none','movz'),
                      ('l','shft','+Box'),
                      ('m','shft','-Box'),
                      ('r','shft','clip'),                 
                      ('l','ctrl','+/-'),
                      ('m','ctrl','pkat'),
                      ('r','ctrl','pk1'),                 
                      ('l','ctsh','Sele'),
                      ('m','ctsh','orig'),
                      ('r','ctsh','menu'),
                      ('w','none','slab'),
                      ('w','shft','movs'),
                      ('w','ctrl','mvsz'),
                      ('w','ctsh','movz'),
                      ('double_left','none','menu'),
                      ('double_middle','none','none'),
                      ('double_right','none', 'pk1'),
                      ('single_left','none','+/-'),
                      ('single_middle','none','cent'),
                      ('single_right','none', 'pkat'),
                      ]