Hallo,

 

I have some questions regarding the pythonised COOT. Currently I am testing the 
coot-0.5-pre-1-revision-1128-fedora-5-python-gtk2  binaries.

 

1.) Trying to switch of a molecule from python scripting window, I get the 
following error message, regardless with or without ": 

coot >> toggle_display_mol ( "0" )

BL WARNING:: Python error!

(Or you attempted to use an invalid guile command...)

Python error:

name 'toggle_display_mol' is not defined

 

2.) Has somebody already ported the code for redefining keys from scheme to 
python?

         What would the python equivalent of the following code be?

         (define graphics-general-key-press-hook

          (lambda (key)

            (format #t "key: ~s~%" key)

               (cond

                   ;; bind the F1 key

                   ((= key 65470) (hardware-stereo-mode))

                   ;; bind the F2 key

                   ((= key 65471) (mono-mode))

                   ;; bind the F3 key

                   ((= key 65472) (set-do-anti-aliasing 1))

                   ;; bind the F4 key

                   ((= key 65473) (set-do-anti-aliasing 0))

                   ;; bind the H key

                   ((= key 104) (place-typed-atom-at-pointer "Water"))

                   (else

                      (format #t "Warning: No binding for key ~s~%" key)))))

 

Best regards,

Michael

 

_______________________________

Dr. Michael Blaesse

Proteros Biostructures GmbH

Am Klopferspitz 19

D-82152 Planegg-Martinsried

Germany

 

Tel.: +49 (0) 89 700761 -0

Fax: +49 (0) 89 700761 -15

E-mail : [EMAIL PROTECTED]

 

Die in dieser e-mail beinhaltete Information unterliegt der Geheimhaltung. Sie 
ist ausschließlich für den genannten Empfänger bestimmt. Falls Sie nicht der 
genannte Empfänger sind, bitten wir Sie, uns darüber in Kenntnis zu setzen und 
alle bestehenden Kopien zu vernichten.

This message and any attached files contain privileged and/or confidential 
information intended only for the use of the addressee. If you are not the 
addressee, or the person responsible for delivering it to the person addressed, 
you may not read, use, copy or deliver this to anyone else. Any action taken or 
omitted to be taken in reliance on it, is prohibited and may be unlawful. If 
you received this message by mistake, please immediately notify us and delete 
it from your system. All care has to be taken to ensure this message and any 
attachments are virus free. No responsibility is accepted for any virus 
infections caused by the receipt of this message.

 

Geschäftsführer: Dr. Torsten Neuefeind, Dr. Peter Reinemer, Prof. Dr. Christian 
Hilz

Amtsgericht München HRB-Nr. 121 476 - VAT-ID: DE 195 857 418 - Steuernummer 
143/173/20265

 

Reply via email to