mailRe: r28199 - /trunk/pipe_control/script.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:40:
On 2 April 2016 at 22:45,  <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Sat Apr  2 22:45:58 2016
New Revision: 28199

URL: http://svn.gna.org/viewcvs/relax?rev=28199&view=rev
Log:
When the userfunction script() is called, a notification of pipe_alteration 
is made.

This will force the GUI to update, and make sure that it is up to-date.

Modified:
    trunk/pipe_control/script.py

Modified: trunk/pipe_control/script.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/pipe_control/script.py?rev=28199&r1=28198&r2=28199&view=diff
==============================================================================
--- trunk/pipe_control/script.py        (original)
+++ trunk/pipe_control/script.py        Sat Apr  2 22:45:58 2016
@@ -68,3 +68,6 @@

     # Return the function intro flag to the original value.
     status.uf_intro = orig_intro_state
+
+    # Make a notification of pipe_alteration, so the GUI will update.
+    status.observers.pipe_alteration.notify()

Hmmm, this seems like a hack that will come back and bite us in the
future.  Maybe we need a general status.observers.update object for
such a purpose?

Regards,

Edward



Related Messages


Powered by MHonArc, Updated Wed Apr 20 12:00:04 2016