Hi Eric, Once the UI is defined, you interface to events as usual, e.g.:
def OnSelChanged(self, evt): self.tablecont = str(self.GetItemText(evt.GetItem())) self.dprint(line()+". OnSelChanged:", self.tablecont) self.TreeViewController(self.tablecont) self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, self.tree) Bye, Ron. P.S.: I think you'd get better responses if you asked this question on wxpython-us...@lists.wxwidgets.org<mailto:wxpython-us...@lists.wxwidgets.org> ________________________________ From: Eric Atienza - e...@ericaro.net [mailto:+ericericaro+comverse+2e4452f01c.eric#ericaro....@spamgourmet.com] Sent: Thursday, December 18, 2008 15:47 To: ericericaro.comve...@9ox.net Subject: Re: Best Practice using Glade/Python (ericericaro: message 1 of 20) Hi, thank for the response (but it ain't in the usenet). I'm looking for best pratices about connecting 'events' from a glade defined UI, and python code. How to you manage it ? Eric http://codeslash.blogspot.com On Thu, Dec 18, 2008 at 2:25 PM, <ericericaro.comve...@9ox.net<mailto:ericericaro.comve...@9ox.net>> wrote: Hi Eric, I'm not sure if I answer your question, but I designed wxPython GUI with wxGlade (http://wiki.wxpython.org/wxGlade). Bye, Ron. -----Original Message----- From: eric [mailto:e...@ericaro.net<mailto:e...@ericaro.net>] Sent: Thursday, December 18, 2008 12:39 To: python-list@python.org<mailto:python-list@python.org> Subject: Best Practice using Glade/Python Hi, I was wondering which is the "best practice" using glade/python, and, of course, especially the connect (both side). I didn't found that much documentation on the net ( too noisy), and the best "thing" I've found was http://www.linuxjournal.com/article/7558 which is a bit old now (2004). The article is very interesting BTW, but I was concerned by the fact it might be a little outdated. It smells like I'm missing something here, and that there have been a clean way to connect both (the autoconnect stuff does not seem that clean to me) for a long time now. So here is the question, do you practive galde/python, which is your practice ? Thanks Eric http://codeslash.blogspot.com
-- http://mail.python.org/mailman/listinfo/python-list