Active Topics

 



Notices


Reply
Thread Tools
Posts: 7 | Thanked: 0 times | Joined on Oct 2007
#1
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.
Attached Files
File Type: txt uitest3.txt (6.0 KB, 95 views)
 
Posts: 7 | Thanked: 0 times | Joined on Oct 2007
#2
I hit send to soon.

Thianks in advance for any help you can provide.

regards,
Leon
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:04.