Best Practice using Glade/Python (ericericaro: message 1 of 20)
Ron.Barak at lsi.com
Sun Dec 21 12:41:42 CET 2008
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.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, self.tree)
P.S.: I think you'd get better responses if you asked this question on wxpython-users at lists.wxwidgets.org<mailto:wxpython-users at lists.wxwidgets.org>
From: Eric Atienza - eric at ericaro.net [mailto:+ericericaro+comverse+2e4452f01c.eric#ericaro.net at spamgourmet.com]
Sent: Thursday, December 18, 2008 15:47
To: ericericaro.comverse at 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 ?
On Thu, Dec 18, 2008 at 2:25 PM, <ericericaro.comverse at 9ox.net<mailto:ericericaro.comverse at 9ox.net>> wrote:
I'm not sure if I answer your question, but I designed wxPython GUI with wxGlade (http://wiki.wxpython.org/wxGlade).
From: eric [mailto:eric at ericaro.net<mailto:eric at ericaro.net>]
Sent: Thursday, December 18, 2008 12:39
To: python-list at python.org<mailto:python-list at python.org>
Subject: Best Practice using Glade/Python
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 ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list