Merge pull request #9 from guppy/master

Minor fixes
This commit is contained in:
Graeme Humphries 2012-03-19 12:22:28 -07:00
commit c99b013ae5

View File

@ -10,16 +10,17 @@ import sys
import math import math
import json import json
import os.path import os.path
try: try:
import gtk import gtk
except: except:
print(sys.stderr, "Missing Python GTK2 bindings.") print >>sys.stderr, "Missing Python GTK2 bindings."
sys.exit(1)
try: try:
import vte import vte
except: except:
error = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, print >>sys.stderr, "Missing Python VTE bindings."
"Missing Python VTE bindings.")
error.run()
sys.exit(1) sys.exit(1)
### Config Dialog ### ### Config Dialog ###
@ -47,7 +48,7 @@ class CruSSHConf:
self.Config["min-height"] = spinbutton.get_value_as_int() self.Config["min-height"] = spinbutton.get_value_as_int()
### GUI Objects ### ### GUI Objects ###
def initGUI(self, save_func = None): def initGUI(self, save_func=None):
self.MainWin.set_modal(True) self.MainWin.set_modal(True)
self.MainWin.props.allow_grow = False self.MainWin.props.allow_grow = False