<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Mouse_modes</id>
	<title>Mouse modes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=Mouse_modes"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Mouse_modes&amp;action=history"/>
	<updated>2026-04-17T05:38:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Mouse_modes&amp;diff=8111&amp;oldid=prev</id>
		<title>Pyadmin: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Mouse_modes&amp;diff=8111&amp;oldid=prev"/>
		<updated>2014-03-28T02:16:32Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Add the code below to the file ''mouse_modes.py'' and run it from within pymol.&lt;br /&gt;
&lt;br /&gt;
After you run it, click on the mouse mode indicator to cycle it at least one time in order to get the new bindings.&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;tt&amp;gt;['three_button_viewing']&amp;lt;/tt&amp;gt; by &amp;lt;tt&amp;gt;['three_button_editing']&amp;lt;/tt&amp;gt;&lt;br /&gt;
to edit the '''3-Button Editing''' mode.&lt;br /&gt;
&lt;br /&gt;
== mouse_modes.py ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
from pymol.controlling import ring_dict,mode_name_dict,mode_dict&lt;br /&gt;
&lt;br /&gt;
# redefine the three_button_viewing mode&lt;br /&gt;
mode_name_dict['three_button_viewing'] = 'My 3-But View'&lt;br /&gt;
mode_dict['three_button_viewing'] =  [ ('l','none','rota'),&lt;br /&gt;
                      ('m','none','move'),&lt;br /&gt;
                      ('r','none','movz'),&lt;br /&gt;
                      ('l','shft','+Box'),&lt;br /&gt;
                      ('m','shft','-Box'),&lt;br /&gt;
                      ('r','shft','clip'),                 &lt;br /&gt;
                      ('l','ctrl','+/-'),&lt;br /&gt;
                      ('m','ctrl','pkat'),&lt;br /&gt;
                      ('r','ctrl','pk1'),                 &lt;br /&gt;
                      ('l','ctsh','Sele'),&lt;br /&gt;
                      ('m','ctsh','orig'),&lt;br /&gt;
                      ('r','ctsh','menu'),&lt;br /&gt;
                      ('w','none','slab'),&lt;br /&gt;
                      ('w','shft','movs'),&lt;br /&gt;
                      ('w','ctrl','mvsz'),&lt;br /&gt;
                      ('w','ctsh','movz'),&lt;br /&gt;
                      ('double_left','none','menu'),&lt;br /&gt;
                      ('double_middle','none','none'),&lt;br /&gt;
                      ('double_right','none', 'pk1'),&lt;br /&gt;
                      ('single_left','none','+/-'),&lt;br /&gt;
                      ('single_middle','none','cent'),&lt;br /&gt;
                      ('single_right','none', 'pkat'),&lt;br /&gt;
                      ]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Library|Mouse Modes]]&lt;br /&gt;
[[Category:UI_Scripts]]&lt;br /&gt;
[[Category:Mouse]]&lt;/div&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
</feed>