mailRe: r28198 - /trunk/gui/relax_gui.py


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

Header


Content

Posted by Edward d'Auvergne on April 20, 2016 - 10:36:
On 2 April 2016 at 22:10,  <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Sat Apr  2 22:10:15 2016
New Revision: 28198

URL: http://svn.gna.org/viewcvs/relax?rev=28198&view=rev
Log:
Optimising the width of the statusbar.

Modified:
    trunk/gui/relax_gui.py

Modified: trunk/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/relax_gui.py?rev=28198&r1=28197&r2=28198&view=diff
==============================================================================
--- trunk/gui/relax_gui.py      (original)
+++ trunk/gui/relax_gui.py      Sat Apr  2 22:10:15 2016
@@ -165,8 +165,8 @@
         self.SetTitle("relax " + version)

         # Set up the status bar.
-        self.status_bar = self.CreateStatusBar(3, 0)
-        self.status_bar.SetStatusWidths([-4, -1, -2])
+        self.status_bar = self.CreateStatusBar(4, 0)
+        self.status_bar.SetStatusWidths([292, -1, 59, 250])

Hi Troels,

I have modified this code to use variable width columns in the status
bar.  The fixed pixel width columns end up looking very ugly on many
systems, with the text being highly truncated and improperly managed
(due to the mixing of fixed and variable widths).  So instead I'm
using the variable widths of [-4, -4, -1, -2].

Regards,

Edward



Related Messages


Powered by MHonArc, Updated Wed Apr 20 11:00:09 2016