Small bugfixes
authorBernard Blackham <[email protected]>
Sun, 27 Jun 2004 18:19:33 +0000 (18:19 +0000)
committerBernard Blackham <[email protected]>
Sun, 27 Jun 2004 18:19:33 +0000 (18:19 +0000)
virtualvend/vvend.glade
virtualvend/vvend.py

index cac8393..9e04bcc 100644 (file)
@@ -34,9 +34,9 @@
          <property name="justify">GTK_JUSTIFY_LEFT</property>
          <property name="wrap">False</property>
          <property name="selectable">False</property>
-         <property name="xalign">0.5</property>
+         <property name="xalign">0.0</property>
          <property name="yalign">0.5</property>
-         <property name="xpad">0</property>
+         <property name="xpad">40</property>
          <property name="ypad">0</property>
        </widget>
        <packing>
index 7793b7a..bb38c58 100644 (file)
@@ -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):

UCC git Repository :: git.ucc.asn.au