From 64db28c0a7fcd3b07c1a40c63237505d5c62946b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Sat, 17 Mar 2012 09:02:07 -0600 Subject: [PATCH 1/2] minor formatting change --- crussh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crussh.py b/crussh.py index 9749542..4938a76 100755 --- a/crussh.py +++ b/crussh.py @@ -41,7 +41,7 @@ class CruSSHConf: self.Config["opacity"] = range.get_value() ### GUI Objects ### - def initGUI(self, save_func = None): + def initGUI(self, save_func=None): self.MainWin.set_modal(True) self.MainWin.props.allow_grow = False From 4a1633acc32477e0e794de57a35b3ffa648313dd Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Sat, 17 Mar 2012 09:08:49 -0600 Subject: [PATCH 2/2] fixed printing to stderr. display a simple error message if vte isn't found, we're running crussh from the command line anyways. --- crussh.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crussh.py b/crussh.py index 757faf9..00a1d40 100755 --- a/crussh.py +++ b/crussh.py @@ -10,16 +10,17 @@ import sys import math import json import os.path + try: import gtk except: - print(sys.stderr, "Missing Python GTK2 bindings.") + print >>sys.stderr, "Missing Python GTK2 bindings." + sys.exit(1) + try: import vte except: - error = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, - "Missing Python VTE bindings.") - error.run() + print >>sys.stderr, "Missing Python VTE bindings." sys.exit(1) ### Config Dialog ###