diff options
author | jblum | 2008-09-18 16:56:25 +0000 |
---|---|---|
committer | jblum | 2008-09-18 16:56:25 +0000 |
commit | 7fa03f371fb3244a5d6a8cb3cd510fef5f97cdfe (patch) | |
tree | 9320e01832a3928a1ef6d0b06b63d1ad08d8e935 /grc/data/platforms/python | |
parent | d601eb214a5c5e647134f7a43c5d0fa83c3488a4 (diff) | |
download | gnuradio-7fa03f371fb3244a5d6a8cb3cd510fef5f97cdfe.tar.gz gnuradio-7fa03f371fb3244a5d6a8cb3cd510fef5f97cdfe.tar.bz2 gnuradio-7fa03f371fb3244a5d6a8cb3cd510fef5f97cdfe.zip |
moved some constants
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9601 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/data/platforms/python')
-rw-r--r-- | grc/data/platforms/python/blocks/preferences.xml | 6 | ||||
-rw-r--r-- | grc/data/platforms/python/flow_graph.tmpl | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/grc/data/platforms/python/blocks/preferences.xml b/grc/data/platforms/python/blocks/preferences.xml index e426b5a34..62f7e17c1 100644 --- a/grc/data/platforms/python/blocks/preferences.xml +++ b/grc/data/platforms/python/blocks/preferences.xml @@ -17,6 +17,12 @@ <type>string</type> </param> <param> + <name>Window Prefix</name> + <key>window_prefix</key> + <value>GRC</value> + <type>string</type> + </param> + <param> <name>File Open</name> <key>file_open</key> <value></value> diff --git a/grc/data/platforms/python/flow_graph.tmpl b/grc/data/platforms/python/flow_graph.tmpl index 2341ef46f..0d02d258e 100644 --- a/grc/data/platforms/python/flow_graph.tmpl +++ b/grc/data/platforms/python/flow_graph.tmpl @@ -42,13 +42,13 @@ $imp #set $param_str = ', '.join(['self'] + ['%s=%s'%(param.get_id(), param.get_make()) for param in $parameters]) #if $generate_options == 'wx_gui' #from gnuradio.grc.platforms.base.Constants import DATA_DIR - #from gnuradio.grc.gui.Constants import MAIN_WINDOW_PREFIX + #from gnuradio.grc.gui import Preferences class $(class_name)(grc_wxgui.top_block_gui): def __init__($param_str): grc_wxgui.top_block_gui.__init__( self, - title="$MAIN_WINDOW_PREFIX - Executing: $flow_graph.get_option('title')", + title="$Preferences.window_prefix() - Executing: $flow_graph.get_option('title')", icon="$(os.path.join($DATA_DIR, 'grc-icon-32.png'))", ) #elif $generate_options == 'no_gui' |