mailRe: A global working directory.


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Michael Bieri on January 26, 2010 - 22:28:
see below:

Edward d'Auvergne schrieb:
Hi Michael,

I would like to introduce the following GUI concept into your code for
simplifying program usage.  That is of a variable in the main class
called self.cwd (accessible in the analysis modules as self.gui.cwd).
This variable is changed every time a file dialog is accessed.  That
way if I run relax from say my home directory and then navigate to a
distant directory containing all the relaxation data and where the
results should go, then each time I open a file dialog, I won't have
to navigate back there.
This is not necessary! If we don't specify a starting directory in openfile() and the other file modules, that's exactly what happens. wx.Filedialog remembers the last folder location.

openfile('select file to open','', 'save.relaxGUI', 'relaxGUI files (*.relaxGUI)|*.relaxGUI|all files (*.*)|*.*')

Note, this command would try to open a file in a directory, where you navigated just before. Just replace the directory string with '' should do it.


I have to implement this anyway as the
structure_pdb() method requires an initial directory which is no
longer set to the res_noe1 value from the NOE analyses tab.  Note that
I would not, and should not expect that changing the PDB file in the
model-free analysis tab would change the PDB file in all other
analyses (I will be breaking this behaviour).  Do you have any ideas
for this?

We can split these, but I taught it makes sense to always use the same PDB file.

Cheers,

Edward

_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel




Related Messages


Powered by MHonArc, Updated Wed Jan 27 10:00:20 2010