![]() |
Selecting a word with touchscreen
Hi , im using pymaemo on n900, i made an app that works as a
dictionary you write a word and then it prints the text from a data base, now i would like to select one word with the touch screen and it automatically looks for that word in the data base withoud writing the word. I have 2 questions related to this: Does textview has any callback when i select a word? i need that word selected, for example print it in the screen , is that possible? my second question is : the following code works fine on linux but not on maemo why is that? mark = self.textbuffer.get_selection_bounds() if mark: start, end = mark contents = self.textbuffer.get_text(start, end) print "Selection", contents how can i select a text with the touchsreen and use that text? thanks Sebastiano ____ |
All times are GMT. The time now is 21:44. |
vBulletin® Version 3.8.8