mailr26555 - /trunk/gui/analyses/base.py


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

Header


Content

Posted by edward on November 12, 2014 - 18:33:
Author: bugman
Date: Wed Nov 12 18:33:14 2014
New Revision: 26555

URL: http://svn.gna.org/viewcvs/relax?rev=26555&view=rev
Log:
A small wx ID conserving change - the 'Execute' button in the analysis tabs 
now uses the ID of -1.

A unique ID is not necessary and is unused.


Modified:
    trunk/gui/analyses/base.py

Modified: trunk/gui/analyses/base.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/base.py?rev=26555&r1=26554&r2=26555&view=diff
==============================================================================
--- trunk/gui/analyses/base.py  (original)
+++ trunk/gui/analyses/base.py  Wed Nov 12 18:33:14 2014
@@ -1,7 +1,7 @@
 
###############################################################################
 #                                                                            
 #
 # Copyright (C) 2009 Michael Bieri                                           
 #
-# Copyright (C) 2010-2013 Edward d'Auvergne                                  
 #
+# Copyright (C) 2010-2014 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax (http://www.nmr-relax.com).         
 #
 #                                                                            
 #
@@ -143,11 +143,8 @@
         # A horizontal sizer for the contents.
         sizer = wx.BoxSizer(wx.HORIZONTAL)
 
-        # A unique ID.
-        id = wx.NewId()
-
         # The button.
-        button = buttons.ThemedGenBitmapTextButton(self, id, None, " 
Execute")
+        button = buttons.ThemedGenBitmapTextButton(self, -1, None, " 
Execute")
         button.SetBitmapLabel(wx.Bitmap(IMAGE_PATH+'relax_start.gif', 
wx.BITMAP_TYPE_ANY))
         button.SetFont(font.normal)
         self.gui.Bind(wx.EVT_BUTTON, method, button)




Related Messages


Powered by MHonArc, Updated Wed Nov 12 18:40:02 2014