From fd37328c778ea8014e9ea9d932e61e5d229dd012 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 25 Sep 2009 00:24:48 -0700 Subject: Added a run options to the "no gui" generate options. The user can select between run to completion and prompt for exit. Also fixed the props dialog is changed function to have better hashes. Now we hash a tuple of all "relevant" items which is "order aware". Since xoring the individual hashes proved faulty when 2 params alternated hiding. --- grc/blocks/options.xml | 29 +++++++++++++++++++++++------ grc/gui/PropsDialog.py | 11 +++++------ grc/python/flow_graph.tmpl | 5 +++++ 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/grc/blocks/options.xml b/grc/blocks/options.xml index 1798a69f8..4d0dd2899 100644 --- a/grc/blocks/options.xml +++ b/grc/blocks/options.xml @@ -77,20 +77,37 @@ else: self.stop(); self.wait() string #if $generate_options() == 'hb' then 'none' else 'all'# + + Run Options + run_options + prompt + enum + #if $generate_options() == 'no_gui' then 'none' else 'all'# + + + Run run True bool - #if $generate_options() == 'wx_gui' - #if str($run) == 'True' -part#slurp + +#if $generate_options() == 'wx_gui' + #if $run() + part #else -none#slurp + none #end if #else -all#slurp -#end if + all +#end if +