summaryrefslogtreecommitdiff
path: root/grc/gui/Dialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/Dialogs.py')
-rw-r--r--grc/gui/Dialogs.py31
1 files changed, 26 insertions, 5 deletions
diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py
index 61d677af85..6c01219dee 100644
--- a/grc/gui/Dialogs.py
+++ b/grc/gui/Dialogs.py
@@ -160,6 +160,8 @@ ERRORS_MARKUP_TMPL="""\
$encode($err_msg.replace('\t', ' '))
#end for"""
+
+
def ErrorsDialog(flowgraph): MessageDialogHelper(
type=gtk.MESSAGE_ERROR,
buttons=gtk.BUTTONS_CLOSE,
@@ -167,6 +169,7 @@ def ErrorsDialog(flowgraph): MessageDialogHelper(
markup=Utils.parse_template(ERRORS_MARKUP_TMPL, errors=flowgraph.get_error_messages()),
)
+
class AboutDialog(gtk.AboutDialog):
"""A cute little about dialog."""
@@ -181,6 +184,7 @@ class AboutDialog(gtk.AboutDialog):
self.run()
self.destroy()
+
def HelpDialog(): MessageDialogHelper(
type=gtk.MESSAGE_INFO,
buttons=gtk.BUTTONS_CLOSE,
@@ -208,8 +212,25 @@ COLORS_DIALOG_MARKUP_TMPL = """\
#end if
"""
-def TypesDialog(platform): MessageDialogHelper(
- type=gtk.MESSAGE_INFO,
- buttons=gtk.BUTTONS_CLOSE,
- title='Types',
- markup=Utils.parse_template(COLORS_DIALOG_MARKUP_TMPL, colors=platform.get_colors()))
+
+def TypesDialog(platform):
+ MessageDialogHelper(
+ type=gtk.MESSAGE_INFO,
+ buttons=gtk.BUTTONS_CLOSE,
+ title='Types',
+ markup=Utils.parse_template(COLORS_DIALOG_MARKUP_TMPL,
+ colors=platform.get_colors())
+ )
+
+
+def MissingXTermDialog(xterm):
+ MessageDialogHelper(
+ type=gtk.MESSAGE_WARNING,
+ buttons=gtk.BUTTONS_OK,
+ title='Warning: missing xterm executable',
+ markup=("The xterm executable {0!r} is missing.\n\n"
+ "You can change this setting in your gnuradio.conf, in "
+ "section [grc], 'xterm_executable'.\n"
+ "\n"
+ "(This message is shown only once)").format(xterm)
+ )