Hi,
Thanks for spotting that, I should have used wx.Dialog :S I'm not
sure about having this stuff in the first shipped version of the GUI
though, maybe the whole 'user functions' menu could be commented out.
Though the 'user functions -> script' entry is incredibly useful!
If you would like to see the new GUI elements in action, try running
the following script from the menus:
pipe.create('test', 'mf')
sequence.read('test_suite/shared_data/sequence/1UBQ.seq',
mol_name_col=1, res_num_col=2, res_name_col=3, spin_num_col=4,
spin_name_col=5)
structure.read_pdb('test_suite/shared_data/structures/dna/LE_trunc.pdb',
set_model_num=1)
structure.load_spins()
structure.read_pdb('test_suite/shared_data/structures/phthalic_acid/gromacs.pdb',
read_model=1, set_model_num=1, set_mol_name='phthalic acid')
structure.load_spins("#phthalic a...@*h*")
structure.load_spins("#phthalic a...@*c*")
This is for testing the 'spin view' window and all the associated code
for handling molecules, residues, and spins.
Cheers,
Edward
On 9 December 2010 02:22, Michael Bieri <[email protected]> wrote:
> Hi Edward
>
> I realised if you open the User functions > Molecule > add dialog and then
> close it using the close box, the GUI can't be close properly anymore. This
> is because there is no specific Hide() function assigned to the box. So if
> the dialog is closed by the box, it will be destroyed (for ever!).
>
> Cheers
> Michael
>
>
> Am 09.12.2010 09:45, schrieb [email protected]:
>>
>> Author: bugman
>> Date: Wed Dec 8 23:45:13 2010
>> New Revision: 11751
>>
>> URL: http://svn.gna.org/viewcvs/relax?rev=11751&view=rev
>> Log:
>> The relax controller is only shown if a script file is selected to be
>> executed.
>>
>>
>> Modified:
>> branches/bieri_gui/gui_bieri/user_functions/script.py
>>
>> Modified: branches/bieri_gui/gui_bieri/user_functions/script.py
>> URL:
>> http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/script.py?rev=11751&r1=11750&r2=11751&view=diff
>>
>> ==============================================================================
>> --- branches/bieri_gui/gui_bieri/user_functions/script.py (original)
>> +++ branches/bieri_gui/gui_bieri/user_functions/script.py Wed Dec 8
>> 23:45:13 2010
>> @@ -41,12 +41,12 @@
>> # User selection of the file.
>> file = openfile(msg='Select the relax script to execute')
>>
>> - # Show the relax controller.
>> - self.gui.controller.Show()
>> -
>> # Check the file.
>> if not file:
>> return
>>
>> + # Show the relax controller.
>> + self.gui.controller.Show()
>> +
>> # Execute the user function.
>> self.interpreter.script(str(file))
>>
>>
>> _______________________________________________
>> relax (http://nmr-relax.com)
>>
>> This is the relax-commits mailing list
>> [email protected]
>>
>> 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-commits
>>
>>
>
> _______________________________________________
> relax (http://nmr-relax.com)
>
> This is the relax-devel mailing list
> [email protected]
>
> 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
>
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-devel mailing list
[email protected]
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