mailr11944 - /branches/bieri_gui/gui_bieri/components/spin_view.py


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

Header


Content

Posted by edward on December 22, 2010 - 15:42:
Author: bugman
Date: Wed Dec 22 15:42:36 2010
New Revision: 11944

URL: http://svn.gna.org/viewcvs/relax?rev=11944&view=rev
Log:
The mol, res, and spin container windows are now being resized when the 
splitter or spin window change.


Modified:
    branches/bieri_gui/gui_bieri/components/spin_view.py

Modified: branches/bieri_gui/gui_bieri/components/spin_view.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/components/spin_view.py?rev=11944&r1=11943&r2=11944&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/components/spin_view.py (original)
+++ branches/bieri_gui/gui_bieri/components/spin_view.py Wed Dec 22 15:42:36 
2010
@@ -65,6 +65,20 @@
         # Display the root window.
         self.display_root()
 
+        # Resizing.
+        self.Bind(wx.EVT_SIZE, self._resize)
+
+
+    def _resize(self, event):
+        """Resize the tree element.
+
+        @param event:   The wx event.
+        @type event:    wx event
+        """
+
+        # Re-perform the window layout.
+        self.Layout()
+
 
     def create_subtitle(self, text):
         """Generate the subtitle wx.StaticText object.




Related Messages


Powered by MHonArc, Updated Wed Dec 22 16:20:02 2010