The "expand" property of a TreeViewColumn is False by default. You have 
to set_expand(True)  the first two columns in your TreeView.

John

Daniel Hernández Bahr wrote:
> this is the thing:
>
>         def init_files():
>             for column in self.updates_view.get_columns():
>                 self.updates_view.remove_column(column)
>                 
>             headers = [_("New File"),_("Old File"), _("Revision")]
>             index = 0
>             
>             for header in headers[:3]:
>                 index += 1
>                 column = gtk.TreeViewColumn(header)
>                 self.updates_view.append_column(column)
>                 cell = gtk.CellRendererText()
>                 column.pack_start(cell, True)
>                 column.add_attribute(cell, 'text', index)
>                 column.set_sort_column_id(index)
>
>             column = gtk.TreeViewColumn(_("Edit"))
>             self.updates_view.append_column(column)
>             cell = gtk.CellRendererPixbuf()
>             column.pack_start(cell)
>             column.add_attribute(cell, 'stock_id', 4)
>             column.set_name('edit_column')
>             column.set_expand(False)
>             
>             selection = self.updates_view.get_selection()
>             selection.set_mode(gtk.SELECTION_MULTIPLE)
>             selection.connect('changed', self.on_files_selection_changed)
>
> ----- Original Message -----
> From: "John Stowers" <john.stowers.li...@gmail.com>
> To: "Daniel Hernández Bahr" <db...@estudiantes.uci.cu>
> Cc: "pygtk" <pygtk@daa.com.au>
> Sent: Wednesday, January 14, 2009 4:29:07 PM (GMT-0500) Auto-Detected
> Subject: Re: [pygtk] TreeViewColumn sizing
>
> On Wed, 2009-01-14 at 16:34 -0500, Daniel Hernández Bahr wrote:
>   
>> Should, but won't .. 
>>     
>
> Please provide your code so we may take a look
>
> Regards,
>
> John
>
>   
>> best regards .. 
>>
>> ----- Original Message -----
>> From: "Pietro Battiston" <too...@email.it>
>> To: "pygtk" <pygtk@daa.com.au>
>> Sent: Wednesday, January 14, 2009 2:10:43 PM (GMT-0500) Auto-Detected
>> Subject: Re: [pygtk] TreeViewColumn sizing
>>
>> Il giorno mer, 14/01/2009 alle 15.50 -0500, Daniel Hernández Bahr ha
>> scritto:
>>     
>>> Hullo, everyone!
>>>
>>> my issue is, I have a TreeView with 4 Columns, and it is my interest
>>> that the last 2 should have the minimal size required (as the last one
>>> is a small pixbuf and the one before that a 4 digit number), and let
>>> the first two to get all the size they need (as they represent file
>>> paths).
>>>
>>> I have tried two set fixed sizes already for the small ones, but it
>>> doesn't work.
>>>       
>> column.set_expand(False) for the two small should do the job
>>
>> Pietro
>>
>> _______________________________________________
>> pygtk mailing list   pygtk@daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>
>> -- 
>>
>> Daniel Hernández Bahr 
>> Universidad de las Ciencias Informáticas. 
>>
>> _______________________________________________
>> pygtk mailing list   pygtk@daa.com.au
>> http://www.daa.com.au/mailman/listinfo/pygtk
>> Read the PyGTK FAQ: http://faq.pygtk.org/
>>     
>
>
>
>
>   

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to