View Single Post
Posts: 5 | Thanked: 1 time | Joined on Sep 2010
#3
Hi !
I made a simple test file to reproduce the ""bug"".

Just copy/paste it to your phone, and launch it:
Code:
python bug.py
I'am filling a bug report just in case.

This clean simple test file makes me even more confident that it's not my mistake here.

Thanks

PS: Couldn't upload the python source file so here is the code straight in the post :

Code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

import gtk

import pygtk

import hildon


class inventory:
    def __init__(self):
        
        self.main_window = hildon.StackableWindow()
        self.dep_button = hildon.PickerButton(gtk.HILDON_SIZE_AUTO,
                                        hildon.BUTTON_ARRANGEMENT_VERTICAL)
        self.dep_button.set_title("test")
        self.selector = hildon.TouchSelectorEntry(text=True)
        self.selector.connect("changed", self.selection_changed)
        
        for i in range(5):
            self.selector.append_text(str(i))
        
        self.main_window.add(self.dep_button)
        self.dep_button.set_selector(self.selector)

        self.main_window.show_all()

    def selection_changed(self, column, user_data):
        print "Begining the signal event"
        print "End of the signal event"
        
        
if __name__ == "__main__":
    inventory()
    gtk.main()

Last edited by Tetsuo6995; 2010-09-24 at 14:46.