Re: [COOT] Scheme on WinCoot (Win XP)
commenting on this. Maybe there should be some low level implementationwithout the use of fancy (scheme) widgets, so that at least scripts can be run.. (on my - long - list now). Ok, I think that would be a good idea. Given the fact that almost all scripting examples on the manual and in various other scripts in this forum are written in scheme it would be nice to have access to at least the basic scripts (non-gui) without having to resort to re-writing them in Python. Although the rules for how to convert scripts are documented, it's still a hurdle, especially for non- programmers. Well, I am almost convinced that there should be an (optional) Scheme/Guile enabled WinCoot version. Will see when I can do it (I think most of it is in place already). Nevertheless (almost) all scheme functions have a python equivalent (and vice versa) so there shouldnt be too much of a problem in using python only. I agree that there is some more python examples on the WIKI page missing (on my -never ending- list already). In the mean time you can look at all the .py files in yourcootdirectory/share/coot/python, there is plenty of examples there. About the underlying problem - the text in scheme widgets - is that a missing feature in the Windows scheme libraries or some weird bug? For the interested, its got to do with the gtk implementation of scheme which is not fully gtk2 compliant. Other systems dont seem to care too much but Windowze does. Hence almost all widgets which display text in some more complex manner wont show any text. I attempted to fix the gtk2 scheme source code to do so, but it seems hard. So I scheduled it for when my to-do-list has less than 2 items (hoping that there may be another solution available then anyway ;-) ). B *** Dr. Bernhard Lohkamp Assistant Professor Div. Molecular Structural Biology Dept. of Medical Biochemistry and Biophysics (MBB) Karolinska Institutet S-17177 Stockholm Sweden phone: (+46) 08-52487673 fax: (+46) 08-327626 email: bernhard.lohk...@ki.se
Re: [COOT] Scheme on WinCoot (Win XP)
Hi Bernhard, Thanks for the clarification. commenting on this. Maybe there should be some low level implementation without the use of fancy (scheme) widgets, so that at least scripts can be run.. (on my - long - list now). Ok, I think that would be a good idea. Given the fact that almost all scripting examples on the manual and in various other scripts in this forum are written in scheme it would be nice to have access to at least the basic scripts (non-gui) without having to resort to re-writing them in Python. Although the rules for how to convert scripts are documented, it's still a hurdle, especially for non- programmers. About the underlying problem - the text in scheme widgets - is that a missing feature in the Windows scheme libraries or some weird bug? Thanks, -Alex On Mon, 11 May 2009 23:17:05 +0200, Bernhard Lohkamp bernhard.lohk...@ki.se wrote: Hi, ok to clarify the situation with respect to Scheme/guile in WinCoot: In general it is possible to compile and run WinCoot with Scheme, however we currently DO NOT distribute WinCoot with Scheme enabled (note to self: change website). The reason for this is that no text can be displayed in the Scheme (Gtk) widgets and I/we want to avoid endless commenting on this. Maybe there should be some low level implementation without the use of fancy (scheme) widgets, so that at least scripts can be run.. (on my - long - list now). B I am new to Coot - I have been experimenting with the examples on the wiki page and it appears that scheme/guile scripting does not work in WinCoot(0.5.2). Just wanted to confirm if I am correct. I am/was a little confused b/c it appears the libraries and paths to scheme/guile get installed but nothing happens if I try to run a scheme script. Also read the slightly cryptic message you can install an add-on forscheme/guile scripting (no warranties) in http://www.ysbl.york.ac.uk/~lohkamp/coot/wincoot.html but I haven't seen this add-on anywhere. Just wanted to avoid re-writing some nice scheme scripts I see here and there and to just get some information on the subject. Thanks! -Alex *** Dr. Bernhard Lohkamp Assistant Professor Div. Molecular Structural Biology Dept. of Medical Biochemistry and Biophysics (MBB) Karolinska Institutet S-17177 Stockholm Sweden phone: (+46) 08-52487673 fax: (+46) 08-327626 email: bernhard.lohk...@ki.se
Re: [COOT] Scheme on WinCoot (Win XP)
Alex Luso wrote: Hi Bernhard, Thanks for the clarification. commenting on this. Maybe there should be some low level implementation without the use of fancy (scheme) widgets, so that at least scripts can be run.. (on my - long - list now). Ok, I think that would be a good idea. Given the fact that almost all scripting examples on the manual and in various other scripts in this forum are written in scheme it would be nice to have access to at least the basic scripts (non-gui) without having to resort to re-writing them in Python. Almost all fancy scheme scripts have a fancy python counterpart (somewhere). In cases where that is not so, such a counterpart can often materialize if desired. Although the rules for how to convert scripts are documented, it's still a hurdle, especially for non- programmers. Yes, that is true for anything other than the most simple/trivial customizations. About the underlying problem - the text in scheme widgets - is that a missing feature in the Windows scheme libraries or some weird bug? Can you be somewhat more precise in you description of the text in scheme widgets? Paul.
Re: [COOT] Scheme on WinCoot (Win XP)
On Wed, 13 May 2009 23:29:28 +0100, Paul Emsley paul.ems...@bioch.ox.ac.uk wrote: About the underlying problem - the text in scheme widgets - is that a missing feature in the Windows scheme libraries or some weird bug? Can you be somewhat more precise in you description of the text in scheme widgets? Paul. I meant the issue Berhard mentions as the reason scheme is not available to Win-Coot - missing text in scheme widgets. Just curious if that's a minor bug or something major. Incidentally, I wonder what's the best resource to look at the available functions/commands etc in coot? For instance, I was curious what parameters were acceptable for set-baton-build-params i.e. from the tutorial/manual I know backwards is an option. But how to reverse it back to normal? forwards, forward, normal?! I found the command in the Coot Reference Manual webpage but it didn't give me any more information. Where would I find it in the code itself? Thanks, -Alex
Re: [COOT] Scheme on WinCoot (Win XP)
On Thu, 14 May 2009 00:34:36 +0100, Paul Emsley paul.ems...@bioch.ox.ac.uk wrote: For instance, I was curious what parameters were acceptable for set-baton-build-params i.e. from the tutorial/manual I know backwards is an option. But how to reverse it back to normal? forwards, forward, normal?! Oh, hmm... Thank you for pointing out this failing. For the record it is forwards. Thanks. Of course, I had figured it out by trial-and-error... :-) Made slightly more difficult b/c there was no error reported for a wrong parameter. I wonder if adding the function as buttons on the baton window would be useful? (i.e. Build Backwards and Build Forwards - perhaps asking for user input as to the relevant res-num or guessing it). I think O does that. Just a thought. Ok. Cheers, -Alex
[COOT] Scheme on WinCoot (Win XP)
Hi, I am new to Coot - I have been experimenting with the examples on the wiki page and it appears that scheme/guile scripting does not work in WinCoot (0.5.2). Just wanted to confirm if I am correct. I am/was a little confused b/c it appears the libraries and paths to scheme/guile get installed but nothing happens if I try to run a scheme script. Also read the slightly cryptic message you can install an add-on for scheme/guile scripting (no warranties) in http://www.ysbl.york.ac.uk/~lohkamp/coot/wincoot.html but I haven't seen this add-on anywhere. Just wanted to avoid re-writing some nice scheme scripts I see here and there and to just get some information on the subject. Thanks! -Alex
Re: [COOT] Scheme on WinCoot (Win XP)
Hi, ok to clarify the situation with respect to Scheme/guile in WinCoot: In general it is possible to compile and run WinCoot with Scheme, however we currently DO NOT distribute WinCoot with Scheme enabled (note to self: change website). The reason for this is that no text can be displayed in the Scheme (Gtk) widgets and I/we want to avoid endless commenting on this. Maybe there should be some low level implementation without the use of fancy (scheme) widgets, so that at least scripts can be run.. (on my - long - list now). B I am new to Coot - I have been experimenting with the examples on the wiki page and it appears that scheme/guile scripting does not work in WinCoot(0.5.2). Just wanted to confirm if I am correct. I am/was a little confused b/c it appears the libraries and paths to scheme/guile get installed but nothing happens if I try to run a scheme script. Also read the slightly cryptic message you can install an add-on forscheme/guile scripting (no warranties) in http://www.ysbl.york.ac.uk/~lohkamp/coot/wincoot.html but I haven't seen this add-on anywhere. Just wanted to avoid re-writing some nice scheme scripts I see here and there and to just get some information on the subject. Thanks! -Alex *** Dr. Bernhard Lohkamp Assistant Professor Div. Molecular Structural Biology Dept. of Medical Biochemistry and Biophysics (MBB) Karolinska Institutet S-17177 Stockholm Sweden phone: (+46) 08-52487673 fax: (+46) 08-327626 email: bernhard.lohk...@ki.se