mailRe: r12899 - /1.3/gui/settings.py


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

Header


Content

Posted by Sébastien Morin on June 09, 2011 - 13:50:
Hi,

It may be good, I think, to only fix the bugs, for the moment, as these are major issues.

For what concerns getting relax more "Mac like", this is just cosmetic and would potentially take a lot of time (which I lack) for very few benefits...

Hence, I will try to catch the bugs and enumerate them as well as possible. Then, I will try to fix them, and if I can't, maybe ask you to give a try.

Having the gui work properly with all its menus under Mac will, I think, get relax many more users..!

Cheers,


Séb  :)


On 11-06-09 12:37 AM, Michael Bieri wrote:
Hi

It really seems to be difficult to make the GUI running smoothly on Mac.
I am in the same position as Edward and don't have a Mac. So for
debugging it will be very difficult for me, as I can't see the changes
and the problems. Doing it over mail might not be ideal, as we have 8
hours time differences....

Seb, if you can try to track down the bugs on Mac, I might be able to
solve them. I think the grid sizer causes problems on Mac. And I event
don't know why I used them....

Cheers
Michael


Am 08.06.2011 23:16, schrieb Edward d'Auvergne:
It may be possible to change this behaviour (for example see
http://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X and
http://stackoverflow.com/questions/824458/app-dock-icon-in-wxpython).
There are many other places on the web describing how to do this.  But
unfortunately I don't have a Mac to test things on, so I really can't
help.

Sorry,

Edward



On 8 June 2011 15:08, Sébastien Morin<sebastien.morin.1@xxxxxxxxx>   wrote:
Hi,

The apple icon is always there for all applications, including the relax
gui.

When I launch the gui, the icon in the dock is a rocket, the icon for
"Python Launcher". The name of the application is also "Python" and not
"relax gui" or something similar... Indeed, relax gui starts within the
Python launcher... or something like this...


Séb  :)


On 11-06-08 2:56 PM, Edward d'Auvergne wrote:
Hi Seb,

I was wondering if the apple icon in the top left hand corner changes
when the GUI is executed?  I'm wondering if we should comment this
out, or handle it differently for a Mac.  From memory, that icon
changes.  Is that correct?

Regards,

Edward



On 8 June 2011 14:49,<sebastien.morin@xxxxxxxxx>     wrote:
Author: semor
Date: Wed Jun  8 14:49:50 2011
New Revision: 12899

URL: http://svn.gna.org/viewcvs/relax?rev=12899&view=rev
Log:

relax icon is not shown in "Global relax settings" window if running on a
Mac.

This is as in revision 12856:
     http://svn.gna.org/viewcvs/relax?rev=12856&view=rev),
but for the button "Settings" / "Global relax settings".

This change creates a bug, as the opened window upon clicking this
button,
when closed, will have relax gui crash (with no button responding). This
needs to be fixed...


Modified:
     1.3/gui/settings.py

Modified: 1.3/gui/settings.py
URL:
http://svn.gna.org/viewcvs/relax/1.3/gui/settings.py?rev=12899&r1=12898&r2=12899&view=diff

==============================================================================
--- 1.3/gui/settings.py (original)
+++ 1.3/gui/settings.py Wed Jun  8 14:49:50 2011
@@ -310,9 +310,13 @@
      def __set_properties(self):
          # begin globalparam.__set_properties
          self.SetTitle("Global parameters")
-        _icon = wx.EmptyIcon()
-
   _icon.CopyFromBitmap(wx.Bitmap(paths.IMAGE_PATH+'relax_start.gif',
wx.BITMAP_TYPE_ANY))
-        self.SetIcon(_icon)
+
+        # 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)
+
          self.label_1_copy.SetFont(wx.Font(12, wx.DEFAULT, wx.NORMAL,
wx.BOLD, 0, ""))
          self.bond.SetMinSize((250, 27))
          self.csa.SetMinSize((250, 27))


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

This is the relax-commits mailing list
relax-commits@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-commits

_______________________________________________
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
--
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
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


_______________________________________________
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

--
Sébastien Morin, Ph.D.
Postdoctoral Fellow, S. Grzesiek NMR Laboratory
Department of Structural Biology
Biozentrum, Universität Basel
Klingelbergstrasse 70
4056 Basel
Switzerland




Related Messages


Powered by MHonArc, Updated Thu Jun 09 14:40:14 2011