Reply
Thread Tools
Posts: 42 | Thanked: 75 times | Joined on Jan 2010
#1
While writing a python application, I create a button like this:
Code:
btnEnter = hildon.Button(gtk.HILDON_SIZE_AUTO, hildon.BUTTON_ARRANGEMENT_VERTICAL)
self.btnEnter.set_image(gtk.image_new_from_file("/some/file.png")
The button appears with the image correctly loaded, but I don't get the nice "beveled" look on them. I do get some theming if I use HILDON_SIZE_THUMB_HEIGHT, but then the button looks crap because the background is repeated vertically instead of scaling (the image is slightly bigger than the default "thumb" size, apparently).

I run the application using run-standalone.sh, and other elements (dialogs, progressbars, etc) do seem to get the theming right. What am I doing wrong ? Is it a known bug?

I went hunting through all the docs on pymaemo.garage.maemo.org and the wiki, but they all say to simply create the button and it will be automatically styled.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 10:57.