Surely the second one will make your program look readable. You also
avoid making calls to get_widget repeatedly.

On 9 Aug 2005 09:10:41 -0000, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> 
>   
> Hi all,
> 
> Is it better to use:
> 
> self.wTree.get_widget("widget").do_something()
> self.wTree.get_widget("widget").do_something_else()
> self.wTree.get_widget("widget").do_something_else_again()
> 
> or
> 
> widget = self.wTree.get_widget("widget")
> widget.do_something()
> widget.do_something_else()
> widget.do_something_else_again()
> 
> Thanks 
> 
>  
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 
> 
>
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to