mailr11810 - /branches/bieri_gui/gui_bieri/user_functions/pipes.py


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

Header


Content

Posted by edward on December 14, 2010 - 01:13:
Author: bugman
Date: Tue Dec 14 01:13:04 2010
New Revision: 11810

URL: http://svn.gna.org/viewcvs/relax?rev=11810&view=rev
Log:
The pipe.switch user function window now displays the cdp.


Modified:
    branches/bieri_gui/gui_bieri/user_functions/pipes.py

Modified: branches/bieri_gui/gui_bieri/user_functions/pipes.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/pipes.py?rev=11810&r1=11809&r2=11810&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/user_functions/pipes.py (original)
+++ branches/bieri_gui/gui_bieri/user_functions/pipes.py Tue Dec 14 01:13:04 
2010
@@ -27,7 +27,7 @@
 import wx
 
 # relax module imports.
-from generic_fns.pipes import VALID_TYPES, pipe_names
+from generic_fns.pipes import VALID_TYPES, cdp_name, pipe_names
 
 # GUI module imports.
 from base import UF_base, UF_window
@@ -199,6 +199,9 @@
         @type sizer:    wx.Sizer instance
         """
 
+        # The current data pipe.
+        self.cdp = self.text(sizer, "The current data pipe (cdp):")
+
         # The pipe selection.
         self.pipe_name = self.combo_box(sizer, "The pipe:", [])
 
@@ -222,9 +225,11 @@
 
         # Clear the previous data.
         self.pipe_name.Clear()
+        self.cdp.Clear()
 
         # Clear the pipe name.
         self.pipe_name.SetValue('')
+        self.cdp.SetValue(str(cdp_name()))
 
         # The list of pipe names.
         for name in pipe_names():




Related Messages


Powered by MHonArc, Updated Tue Dec 14 11:20:02 2010