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
"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
def do_vend_all(self):
for i in range(11,99):
- self.do_send("101 Vending ",i,"\n")
+ self.do_send("101 Vending "+str(i)+"\n")
self.do_send("153 Home sensors failing\n")
self.do_send("102 Vend all motors complete\n")
if fail:
self.do_send("153 Home sensors failing\n")
else:
- self.insert("Vending ",command)
+ self.insert("Vending "+command)
self.do_send("100 Vend successful\n")
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):