I'm trying to learn Python for the 770 (OS2006).
I'm having a problem that I cannot figure out.
I want to put an image on each button in a 2x4 table,
using PyGTK
Here'a a code snippet of what I'm I'm using --
# Create a set of buttons
Button1 = gtk.Button()
... <snipped>...
#Load images for the buttons
Image1 = gtk.Image()
Image1.set_from_file('/home/user/iPhone/map.png')
Image1.show
Button1.add(Image1)
It works on my pc, but on the 770 the button is blank.
Not the "x' that would be a indication of a load error.
Does anyone have3 any ideas/suggestions.
I attached the full file in case it helps.
I'm having a problem that I cannot figure out.
I want to put an image on each button in a 2x4 table,
using PyGTK
Here'a a code snippet of what I'm I'm using --
# Create a set of buttons
Button1 = gtk.Button()
... <snipped>...
#Load images for the buttons
Image1 = gtk.Image()
Image1.set_from_file('/home/user/iPhone/map.png')
Image1.show
Button1.add(Image1)
It works on my pc, but on the 770 the button is blank.
Not the "x' that would be a indication of a load error.
Does anyone have3 any ideas/suggestions.
I attached the full file in case it helps.