maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Maemo 5 touch lists (https://talk.maemo.org/showthread.php?t=33145)

yerga 2010-02-15 09:52

Re: Maemo 5 touch lists
 
It's just a typo when creating the third column, instead of markup=1, it should be markup=2

hmaki 2010-02-15 09:55

Re: Maemo 5 touch lists
 
Oh great. Thank you. Frankly, I didn't know the number after markup= denotes the column. :) I somehow thought it's sort of boolean.

Great, I can now go on.

hmaki 2010-02-22 10:23

Re: Maemo 5 touch lists
 
Quote:

Originally Posted by yerga (Post 527042)
It's just a typo when creating the third column, instead of markup=1, it should be markup=2

Next problem I'm facing. I'm opening a StackableWindow, where I put the PannableArea including GtkTreeview with three columns as I showed in the code snippet on last page.

When I populate the treeview, the columns expand beyond the screen width, if the track names are too long. How could I request the treeview (or pannablearea) to always fit to screen width?

yerga 2010-02-22 12:01

Re: Maemo 5 touch lists
 
Quote:

Originally Posted by hmaki (Post 540827)
Next problem I'm facing. I'm opening a StackableWindow, where I put the PannableArea including GtkTreeview with three columns as I showed in the code snippet on last page.

When I populate the treeview, the columns expand beyond the screen width, if the track names are too long. How could I request the treeview (or pannablearea) to always fit to screen width?

You have some properties for gtk.CellRendererText: "wrap-mode", "wrap-width" and "ellipsize"

It can also be useful the set_sizing() and set_fixed_width() methods of the gtk.TreeViewColumn.

Play with that until that you find the best way to show the text.

dwould 2010-03-17 10:02

Re: Maemo 5 touch lists
 
This thread was pretty helpful to me as I was playing last night, but one thing I've not got... I don't see the little lines dividing the cells in my list as are shown in all the screen shots here.
Is there some special step I need to take to get them to show up?

demiurgus 2010-03-22 09:53

Re: Maemo 5 touch lists
 
Quote:

Originally Posted by dwould (Post 570151)
This thread was pretty helpful to me as I was playing last night, but one thing I've not got... I don't see the little lines dividing the cells in my list as are shown in all the screen shots here.
Is there some special step I need to take to get them to show up?

Yes, I'd really like to know this as well. I've been searching docs and code and trying a lot of things but haven't yet been able to produce any row delimiting lines... please give us a hint...

dwould 2010-04-02 13:49

Re: Maemo 5 touch lists
 
*Bump*
I was looking again at this, and I cannot for the life of me get the dividing lines to show up, I've set every property I can think of, and played with overriding gtk rc style stuff, but at best I get a dividing line which is the same colour as the background ;-(

help?

fredrik_wendt 2010-07-30 06:34

Re: Maemo 5 touch lists
 
Quote:

Originally Posted by mattaustin (Post 459199)
Although I have dabbled in python, it's my first time playing with anything GTK/GUI related.

I have created and populated a treeview no problems - mostly thanks to the info above (thanks!).

Are there any example of how to filter the treeview when the user types on the keyboard? Kind-of how the contacts list works. I hope its easy, as I am only just getting the hang of what I've done already!

Cheers!

Hermes uses something like this here: https://garage.maemo.org/plugins/ggi...4d077f5f3f8e15

Hope this helps!


All times are GMT. The time now is 11:18.

vBulletin® Version 3.8.8