[Sugar-devel] Gtk.TreeView Error

Utkarsh Tiwari iamutkarshtiwari at gmail.com
Sat Mar 12 06:12:51 EST 2016


Apologies for the wrong link I sent above.

This is the correct link->
http://www.pygtk.org/pygtk2reference/class-gtktreeviewcolumn.html#method-gtktreeviewcolumn--get-cell-renderers

Regards,
Utkarsh Tiwari

On Sat, Mar 12, 2016 at 4:41 PM, Utkarsh Tiwari <iamutkarshtiwari at gmail.com>
wrote:

> Thank you for those docs' references.
>
> I was talking about this documentation ->
> http://www.pygtk.org/pygtk2reference/class-gtktreeview.html#method-gtktreeview--set-cursor-on-cell
>
> Thanks,
> Utkarsh Tiwari
>
>
>
> On Sat, Mar 12, 2016 at 4:26 PM, Sam Parkinson <sam.parkinson3 at gmail.com>
> wrote:
>
>> Hi Utkarsh,
>>
>> I have been using the Python Gi Api Reference for the past few years, and
>> it has served me well.  According to their page on the subject [1], there
>> is not get_cell_renderers method.
>>
>> If you are trying to grab focus on a specific cell, maybe look for the
>> row first?  Each column should only have 1 cell renderer anyway.
>>
>> Thanks,
>> Sam
>>
>> [1]
>> http://lazka.github.io/pgi-docs/index.html#Gtk-3.0/classes/TreeViewColumn.html#methods
>>
>>
>> On Sat, Mar 12, 2016 at 8:59 PM, Utkarsh Tiwari <
>> iamutkarshtiwari at gmail.com> wrote:
>>
>> Hi,
>>      I am trying to grab focus of a specific cell in a Gtk.TreeView
>> instance through this technique -> *https://gist.github.com/iamutkarshtiwari/a826625eb0ebcd63c91c
>> <https://gist.github.com/iamutkarshtiwari/a826625eb0ebcd63c91c>*
>>
>> But I am getting this error->* " 'TreeViewColumn' object has no
>> attribute 'get_cell_renderers' " *
>> though the *Gtk.TreeViewColumn *official docs mentions the
>> *get_cell_renderers()* function.
>>
>> Could anyone here please help me with this?
>>
>> Thanks,
>> Utkarsh Tiwari
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160312/bb3067c3/attachment.html>


More information about the Sugar-devel mailing list