Yes:::
Running python script /home/xray/ccp4/ccp4-7.0/ccp4-7.0/lib/python2.7/site-packages/coot/coot_load_modules.py
Good Afternoon Satyshur, Welcome to Coot. 0.8.3
(set-display-intro-string "Good Afternoon Satyshur, Welcome to Coot. 0.8.3")
Coot Python Scripting GUI code found and loaded.
Coot Python Scripting GUI code found and loaded.
(use-graphics-interface-state)
Running python script /home/satyshur/.coot-preferences/coot_oli_custom.py
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/satyshur/.coot-preferences/coot_oli_custom.py", line 1
<!DOCTYPE html><html lang="en" xmlns:fb="http://ogp.me/ns/fb#" xml:lang="en" class="media-desktop" xmlns="http://www.w3.org/1999/xhtml"><head><script nonce="MWjlz4nEV4uVkzny8+un">
^
SyntaxError: invalid syntax
I am running this version of python:
Python 2.6.6 (r266:84292, May 22 2015, 08:34:51)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
As per usual, different versions of python don't run other versions. In particular, old versions have different syntax than newer versions.
kas
Kenneth A. Satyshur, M.S., Ph.D.
Senior Scientist
University of Wisconsin-Madison
Madison, Wisconsin, 53706
608-215-5207
________________________________________
From: Mailing list for users of COOT Crystallographic Software <[log in to unmask]> on behalf of Oliver Clarke <[log in to unmask]>
Sent: Monday, May 16, 2016 8:44:51 AM
To: [log in to unmask]
Subject: Re: Key binding to toggle modelling toolbar
Dear Jan, the script I use is here: https://www.dropbox.com/s/0b4bebwxw0p9x0e/oli_custom.py?dl=0
Feel free to modify and redistribute as you like.
This script has a lot of custom key bindings defined, and also a "Custom" menu with a bunch of shortcuts for common tasks.
I did actually attempt at one point to start something like what you suggest (http://cootscripts.tiddlyspace.com/), but it never really took off so I stopped updating it (although the link to the script remains current).
Cheers,
Oli.
On Mon, 16 May 2016 09:14:06 +0200, Jan Stransky <[log in to unmask]> wrote:
>Cool.
>
>Oli., you did a lot of interesting work for coot recently. Are your
>script available somewhere on the web?
>
>May be, it would be nice to have some centralized repository of ALL
>(user-created) coot scripts.
>
>Jan
>
>On 05/14/2016 01:29 AM, Oliver Clarke wrote:
>> Hi all,
>>
>> I use Coot mostly on a laptop, where screen real estate is a precious commodity, so I wrote this key binding to hide/show the modelling toolbar on the side, thought maybe someone else might find it useful too.
>>
>> It assumes that the modelling toolbar is shown at the start of the session.
>>
>> Cheers,
>> Oli
>>
>> #Toggle display of modelling toolbar (assumes it is shown by default)
>> toolbar_toggle_var=1
>> def toggle_toolbar_display():
>> global toolbar_toggle_var
>> if toolbar_toggle_var==0:
>> hide_modelling_toolbar()
>> toolbar_toggle_var=1
>> elif toolbar_toggle_var==1:
>> show_modelling_toolbar()
>> toolbar_toggle_var=0
>> add_key_binding("Toggle toolbar display","H",
>> lambda: toggle_toolbar_display())
>
>--
>Jan Stransky, PhD student
>Institute of Biotechnology, CAS
>Laboratory of structure and function of biomolecules
>Prumyslova 595
>Vestec
>Czech Republic
>
>+420325873758
|