View Single Post
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#4
Originally Posted by nicolai View Post
Put your button into a container, which does not stretch the
child widgets, gtk.VBox for example:

Code:
import gtk
import hildon


def main():
        program = hildon.Program.get_instance()
        win = hildon.StackableWindow()
        win.set_title("test")
        button = hildon.Button(gtk.HILDON_SIZE_AUTO_WIDTH | gtk.HILDON_SIZE_FINGER_HEIGHT, hildon.BUTTON_ARRANGEMENT_VERTICAL)
        button.set_text("some text", "some value")
        box = gtk.VBox(False, 0)
        box.pack_start(button, False, False, 0)
        win.add(box)
        win.show_all()
        gtk.main()

if __name__ == "__main__":
        main()
Uhhh, thanks a lot!
It really made me go nuts! Will try that right now and report.