<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>
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_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):