mailr14078 - /branches/gui_testing/gui/controller.py


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

Header


Content

Posted by edward on August 02, 2011 - 21:15:
Author: bugman
Date: Tue Aug  2 21:15:09 2011
New Revision: 14078

URL: http://svn.gna.org/viewcvs/relax?rev=14078&view=rev
Log:
Mouse text selection is disabled in the relax controller log window.

This is so that the WriteText() call always adds the text to the end, by 
preventing the insertion
point from changing.


Modified:
    branches/gui_testing/gui/controller.py

Modified: branches/gui_testing/gui/controller.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/controller.py?rev=14078&r1=14077&r2=14078&view=diff
==============================================================================
--- branches/gui_testing/gui/controller.py (original)
+++ branches/gui_testing/gui/controller.py Tue Aug  2 21:15:09 2011
@@ -157,6 +157,9 @@
         # Set the font info.
         self.log_panel.SetFont(font.modern_8)
 
+        # Override mouse clicks to prevent weird text insertions.
+        self.log_panel.Bind(wx.EVT_LEFT_DOWN, self.mouse_override)
+
         # Add to the sizer.
         sizer.Add(self.log_panel, 1, wx.EXPAND|wx.ALL, 0)
 
@@ -305,6 +308,17 @@
             self.update_gauge()
 
 
+    def mouse_override(self, event):
+        """Override mouse events in the log window to prevent strange text 
insertion points.
+
+        This method does nothing!
+
+
+        @param event:   The wx event.
+        @type event:    wx event
+        """
+
+
     def setup_frame(self):
         """Set up the relax controller frame.
         @return:    The sizer object.




Related Messages


Powered by MHonArc, Updated Tue Aug 02 23:20:01 2011