![]() |
Disabling expanding of first item in TouchSelector (python)
I'm trying create list with hildon.TouchSelector, but I don't understand how to disable expanding of first item.
It looks like: http://hosted.laasonen.net/Screensho...010-032002.png I would like it look like this: http://hosted.laasonen.net/Screensho...010-032643.png Code: Code:
#Librarys |
Re: Disabling expanding of first item in TouchSelector (python)
Or is there a way to get hildon_live_search work with python to get my treeview-version work?
Code:
#Librarys |
Re: Disabling expanding of first item in TouchSelector (python)
Cannot exactly help you here. I have just put buttons within a PannableArea to get to what you described as your desired end result. Not fancy in the model-view sense, but more control.
|
Re: Disabling expanding of first item in TouchSelector (python)
Quote:
http://hosted.laasonen.net/Screensho...010-032643.png |
Re: Disabling expanding of first item in TouchSelector (python)
I tryed this:
Code:
#Image Code:
TypeError: object of type `HildonTouchSelectorColumn' does not have property `expand' |
Re: Disabling expanding of first item in TouchSelector (python)
You need to use the GtkCellLayout functions of the column to add the cell renderer with expand=False, like you did for the 2nd renderer.
I think the doc says that the 2nd argument in append_column should be None, but it's giving an error, so I add the renderer, and then clear() it. Alternatively, you can probably add the text renderer first, and then reorder them. Code:
column = selector.append_column(store, renderer) |
All times are GMT. The time now is 11:57. |
vBulletin® Version 3.8.8