Best Practice using Glade/Python (ericericaro: message 1 of 20)
Barak, Ron
Ron.Barak at lsi.com
Sun Dec 21 06:41:42 EST 2008
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-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 ?
Eric
http://codeslash.blogspot.com
On Thu, Dec 18, 2008 at 2:25 PM, <ericericaro.comverse at 9ox.net<mailto:ericericaro.comverse at 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: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
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081221/ce0b25fb/attachment-0001.html>
More information about the Python-list
mailing list