Synaptic : Libglade for Python
LinuxMurah.com
linuxmurah at gmail.com
Sun Apr 9 06:54:21 UTC 2006
here is my complete program taken from http://baypiggies.net/old/10mintig.html
#!/usr/bin/python
from gtk import *
from gnome.ui import *
from GDK import *
import libglade
def main():
widgets = libglade.GladeXML('foo.glade')
app1 = widgets.get_widget('app1')
label1 = widgets.get_widget('label1')
label2 = widgets.get_widget('label2')
label3 = widgets.get_widget('label3')
label1.set_text('New Label Text for Label 1');
label2.set_text('New Label Text for Label 2');
label3.set_text('New Label Text for Label 3');
app1.set_title('This is a new application window title');
mainloop()
if __name__ == '__main__':
main()
when I run it in Ubuntu always error, so how I can change it so that
it can be run in Breezy? I have already 'glade-2' and 'python-glade2'
installed.
More information about the ubuntu-users
mailing list