Hi,

Unfortunately not :S  This is a difficult one.  It may require random
code deletion to find!

There is another way, and that would be to redesign the code.  The GUI
would be the same, but the layout would be different.  I have been
doing this with the old code to make it more flexible.  For example,
have a look at the Base_window class in the same module.  Or
Auto_model_free in gui.analyses.auto_model_free.  The idea is that
each basic GUI element is in a separate method (most start with
add_*).  Most the current class variables can then become local to the
method.  The sizes shift from hard coded numbers to class variable,
e.g. the 5 in grid_sizer_1_copy.Add(self.label_5_copy, 1, wx.LEFT, 5).
 Then you will have a set of methods which if commented out will not
add that GUI element.  This is perfect for such debugging.  What do
you think?  All of the initialisation, properties, and layout of
individual GUI elements is within one method.

Regards,

Edward


On 8 June 2011 14:51, Sébastien Morin <[email protected]> wrote:
> Hi,
>
> I just committed the change in revision 12899.
>
> Removing the "event.Skip" events in "gui/settings.py" did not solve the gray
> button/relax crash problem...
>
> Any further idea ?
>
>
> Séb  :)
>
>
> On 11-06-08 2:24 PM, Edward d'Auvergne wrote:
>>
>> Hi,
>>
>> I would make that change, point to the mailing list message of r12856
>> (https://mail.gna.org/public/relax-commits/).  For the grey buttons,
>> try playing with the event.Skip() calls.  Try removing these calls and
>> seeing if that works.  For testing on another system, there is always
>> VirtualBox.  It's very easy to set up a GNU/Linux and/or MS Windows
>> image under any system with this.  They even have a Mac dmg file
>> (http://www.virtualbox.org/wiki/Downloads).
>>
>> Cheers,
>>
>> Edward
>>
>>
>>
>> On 8 June 2011 14:00, Sébastien Morin<[email protected]>  wrote:
>>>
>>> Hi,
>>>
>>> Please also see below...
>>>
>>>
>>> On 11-06-07 5:13 PM, Edward d'Auvergne wrote:
>>>>
>>>> Hi,
>>>>
>>>> Please see below:
>>>>
>>>>
>>>>> I was surfing the different menus in relax (thanks to your debugging
>>>>> for
>>>>> Mac
>>>>> as I can now see the extent of your work on this interface!), when I
>>>>> found a
>>>>> few little problems:
>>>>>
>>>>> * In the "User functions" / "value" / "set" menu, the figure for the
>>>>> CSA,
>>>>> which, I guess, should display the default value, has an error. The
>>>>> default
>>>>> value is not "172 ppm", but rather "-172 ppm".
>>>>
>>>> I will fix this one.  The "User functions" menu is my addition, and it
>>>> will become much more prominent in the next version of the GUI.
>>>>
>>> Ok.
>>>
>>>>> * The "Settings" / "Global relax settings" button does not do
>>>>> anything...
>>>>
>>>> This works on my machine, so it must be a Mac OS X issue.  Would you
>>>> like to try to debug this one?
>>>>
>>> I had a look...
>>>
>>> This is a similar problem to the one that was fixed in revision 12856.
>>> Indeed, if I change lines 314-316 of "gui/settings.py" from:
>>>
>>>        _icon = wx.EmptyIcon()
>>>        _icon.CopyFromBitmap(wx.Bitmap(paths.IMAGE_PATH+'relax_start.gif',
>>> wx.BITMAP_TYPE_ANY))
>>>        self.SetIcon(_icon)
>>>
>>> to
>>>
>>> ====
>>>        # Disable icon if running on a Mac
>>>        if not 'darwin' in sys.platform:
>>>            _icon = wx.EmptyIcon()
>>>
>>>  _icon.CopyFromBitmap(wx.Bitmap(paths.IMAGE_PATH+'relax_start.gif',
>>> wx.BITMAP_TYPE_ANY))
>>>            self.SetIcon(_icon)
>>> ====
>>>
>>> The button now creates the global relax settings window. However, upon
>>> closing the window (by clicking ok or cancel, or by killing the window),
>>> all
>>> buttons remain gray and the gui is unusable...
>>>
>>> Any idea ?
>>>
>>>>> * The text in the window created when hitting the button "View" /
>>>>> "Controller" is extremely small and difficult to read...
>>>>
>>>> This needs to be small to fit, but it sounds like there is again a Mac
>>>> specific issue.  I'm not sure how we'd fix this one and not have the
>>>> text too big in Linux.  Do you have a Linux testing machine (or
>>>> virtual image)?
>>>
>>> I have only my Mac... Sorry.
>>>
>>> Cheers,
>>>
>>>
>>> Séb  :)
>>>
>>>> If you would like to add to the GUI in any way, feel free :)
>>>>
>>>> Cheers,
>>>>
>>>> Edward
>>>
>>> --
>>> Sébastien Morin, Ph.D.
>>> Postdoctoral Fellow, S. Grzesiek NMR Laboratory
>>> Department of Structural Biology
>>> Biozentrum, Universität Basel
>>> Klingelbergstrasse 70
>>> 4056 Basel
>>> Switzerland
>>>
>>>
>> _______________________________________________
>> 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
>
> --
> Sébastien Morin, Ph.D.
> Postdoctoral Fellow, S. Grzesiek NMR Laboratory
> Department of Structural Biology
> Biozentrum, Universität Basel
> Klingelbergstrasse 70
> 4056 Basel
> Switzerland
>
>

_______________________________________________
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

Reply via email to