← Back to team overview

gladex team mailing list archive

Re: [Question #60521]: How to get access to widgets?

 

Question #60521 on Gladex changed:
https://answers.launchpad.net/gladex/+question/60521

    Status: Open => Answered

Francesco Marella proposed the following answer:
hi Alexander,

you can get access to the whole tree by using the parameter "wtree" like
below:

"
def on_SolveButton_clicked(widget, data, wtree):
   #print "function 'on_on_SolveButton_clicked' not implemented"
   entry1 = wtree.get_widget("id_entry1")
   entry2 = wtree.get_widget("id_entry2")
   ...
   pass
"
now that you have the widgets you can call the proper methods (es. entry1.get_text() ).
See http://www.pygtk.org/docs/pygtk/index.html for more details.

-fm

-- 
You received this question notification because you are a member of
Gladex Developers, which is an answer contact for Gladex.