[Sugar-devel] Gtk.TreeView Error

Sam Parkinson sam.parkinson3 at gmail.com
Sat Mar 12 06:13:31 EST 2016



On Sat, Mar 12, 2016 at 10:11 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

That is a reference for pygtk.  Pygtk is the gtk2 api only.

Sugar uses Gtk+3 (via gi repository), which has undergone ~5 years more 
development.  I imagine that this is a point that the old and new have 
diverged.

> 
> 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
>>> 
>>> 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/d826f5d2/attachment.html>


More information about the Sugar-devel mailing list