ImageD11.guicommand
index
/sware/exp/fable/standalone/redhate4-a64/lib/python2.5/site-packages/ImageD11/guicommand.py

Interface between Tkinter gui and the actual useful code.
 
There should be no scientific algorithms (eventually) on
the gui side of this class.
 
This class will eventually offer macro recording capability.

 
Modules
       
numpy.oldnumeric
ImageD11.indexing
logging
ImageD11.peakmerge
sys
ImageD11.transformer

 
Classes
       
guicommand

 
class guicommand
    Keeps a log of all commands issued - separates gui code from
algorithmical code
 
  Methods defined here:
__init__(self)
execute(self, obj, command, *args, **kwds)
Pass in object as string [peakmerger|transformer|indexer]
Pass in command as string, getattr(command) will be used
Returns the return value of the function....
 
TODO : change this interface???
     eg : works - returns True
                  you look for self.lastreturned
          fails - returns False
                  you look for self.lasttraceback
getdata(self, obj, name)
Allows access to "live" data in the objects wrapped
 
By passing references back you can circumvent the
cleanliness of the interface. Please dont.
 
Returns object.name
gethistory(self)
Returns the history of commands run by the gui commander

 
Data
        RETURN_NUMERICS = False