From: Bernard Blackham Date: Sun, 27 Jun 2004 18:19:33 +0000 (+0000) Subject: Small bugfixes X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=4eb3fe811984e46117e1d4b62fa10b2934e70d19;p=zanchey%2Fdispense2.git Small bugfixes --- diff --git a/virtualvend/vvend.glade b/virtualvend/vvend.glade index cac8393..9e04bcc 100644 --- a/virtualvend/vvend.glade +++ b/virtualvend/vvend.glade @@ -34,9 +34,9 @@ GTK_JUSTIFY_LEFT False False - 0.5 + 0.0 0.5 - 0 + 40 0 diff --git a/virtualvend/vvend.py b/virtualvend/vvend.py index 7793b7a..bb38c58 100644 --- a/virtualvend/vvend.py +++ b/virtualvend/vvend.py @@ -22,6 +22,8 @@ except: print "/usr/local/lib/python2.2/site-packages/" sys.exit(1) +import pango + #now we have both gtk and gtk.glade imported #Also, we know we are running GTK v2 @@ -58,6 +60,8 @@ class appgui: "on_vvend_delete_event" : self.quit } self.wTree.signal_autoconnect (dic) display = self.wTree.get_widget("label1") + label_font = pango.FontDescription('monospace 28') + display.modify_font(label_font) display.set_text("*5N4CK0RZ*") # vending machine password set here @@ -259,7 +263,7 @@ Mark Tearle, June 2004 def do_display(self,string): display = self.wTree.get_widget("label1") - display.set_text("%10.10s" % (string)) + display.set_text("%-10.10s" % (string)) self.do_send('300 Written\n') def do_beep(self,command):