Re: [pygtk] Query regarding clickable property for a Gtk.TreeViewColumn

2012-12-11 Thread Ajay Garg
On Tue, Dec 11, 2012 at 1:30 PM, Simon Feltman s.felt...@gmail.com wrote:

 The docs say the set_clickable only affects the column header. Is this
 what you are seeing?


You mean just the first row?
If yes, even that is not taking effect.



 -Simon
 On Dec 10, 2012 11:09 PM, Ajay Garg ajaygargn...@gmail.com wrote:



 On Tue, Dec 11, 2012 at 2:51 AM, Marco Antonio Islas Cruz 
 mar...@islascruz.org wrote:

 Hi Ajay,

 Why don't ju just use gtk.TreeView.set_clickable(active)[1] instead of
 directly handling the properties?.


 Doesn't  make any difference.




 On the other side, you may need to update the cellrenderer or the widget
 inside the cell instead of the treeview.


 In what sense? AFAIK it's only the TreeViewColumn that has a clickable
 property.
 Any how, for brevity, I may mention that the widget inside the
 TreeViewColumn is a Gtk.CellRendererText.



 [1]
 http://www.pygtk.org/docs/pygtk/class-gtktreeviewcolumn.html#method-gtktreeviewcolumn--set-clickable


 Cheers

 On Dec 10, 2012, at 2:31 PM, Ajay Garg ajaygargn...@gmail.com wrote:

 However, once the view is rendered, and if  after that
 a.props.clickable = False is done, the tree-view-column still remains
 clickable (and the text of  the cell-renderer editable).


  Marco Antonio Islas Cruz
 mar...@islascruz.org
 marco.is...@gmail.com
 -- linux because I'm free --





 Regards,
 Ajay


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




-- 
Regards,
Ajay
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Re: [pygtk] Query regarding clickable property for a Gtk.TreeViewColumn

2012-12-11 Thread Timo

Op 11-12-12 09:02, Ajay Garg schreef:



On Tue, Dec 11, 2012 at 1:30 PM, Simon Feltman s.felt...@gmail.com 
mailto:s.felt...@gmail.com wrote:


The docs say the set_clickable only affects the column header. Is
this what you are seeing?


You mean just the first row?
If yes, even that is not taking effect.
Can you provide a minimal, standalone code snippet? That would make it a 
bit easier for us to see what is going on.


Timo

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


Re: [pygtk] Query regarding clickable property for a Gtk.TreeViewColumn

2012-12-10 Thread Marco Antonio Islas Cruz
Hi Ajay,

Why don't ju just use gtk.TreeView.set_clickable(active)[1] instead of directly 
handling the properties?. On the other side, you may need to update the 
cellrenderer or the widget inside the cell instead of the treeview.

[1] 
http://www.pygtk.org/docs/pygtk/class-gtktreeviewcolumn.html#method-gtktreeviewcolumn--set-clickable


Cheers
On Dec 10, 2012, at 2:31 PM, Ajay Garg ajaygargn...@gmail.com wrote:

 However, once the view is rendered, and if  after that a.props.clickable = 
 False is done, the tree-view-column still remains clickable (and the text of 
  the cell-renderer editable).

Marco Antonio Islas Cruz
mar...@islascruz.org
marco.is...@gmail.com
-- linux because I'm free --



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

Re: [pygtk] Query regarding clickable property for a Gtk.TreeViewColumn

2012-11-30 Thread Timo

Op 29-11-12 21:09, Ajay Garg schreef:

Hi all.

We are using  the classical case of a Gtk.CellRenderText encompassed 
in a Gtk.TreeViewColumn, which in turn is appended to a Gtk.TreeView.
Here a.props.clickable = True, where a is an instance of 
Gtk.TreeViewColumn.


However, once the view is rendered, and if  after that 
a.props.clickable = False is done, the tree-view-column still 
remains clickable (and the text of  the cell-renderer editable).


Any ideas for this discrepancy?


It has been some time, but I think you need a call to 
gtk.TreeView.set_headers_clickable(False)


Timo




Regards,
Ajay



___
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/


Re: [pygtk] Query regarding clickable property for a Gtk.TreeViewColumn

2012-11-30 Thread Ajay Garg
Hi Timo.

On Fri, Nov 30, 2012 at 3:59 PM, Timo timomli...@gmail.com wrote:

 Op 29-11-12 21:09, Ajay Garg schreef:

  Hi all.

 We are using  the classical case of a Gtk.CellRenderText encompassed in a
 Gtk.TreeViewColumn, which in turn is appended to a Gtk.TreeView.
 Here a.props.clickable = True, where a is an instance of
 Gtk.TreeViewColumn.

 However, once the view is rendered, and if  after that a.props.clickable
 = False is done, the tree-view-column still remains clickable (and the
 text of  the cell-renderer editable).

 Any ideas for this discrepancy?


 It has been some time, but I think you need a call to
 gtk.TreeView.set_headers_**clickable(False)


Doesn't work either :-\



 Timo



 Regards,
 Ajay



 __**_
 pygtk mailing list   pygtk@daa.com.au
 http://www.daa.com.au/mailman/**listinfo/pygtkhttp://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/pygtkhttp://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://faq.pygtk.org/




-- 
Regards,
Ajay
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/