<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3462" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=315593611-21122008><FONT face=Arial size=2>Hi 
Eric,</FONT></SPAN></DIV>
<DIV><SPAN class=315593611-21122008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=315593611-21122008><FONT face=Arial size=2>Once the UI is 
defined, you interface to events as usual, e.g.:</FONT></SPAN></DIV>
<DIV><SPAN class=315593611-21122008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=315593611-21122008><FONT face="Courier New" 
size=2>    def OnSelChanged(self, 
evt):<BR>        self.tablecont = 
str(self.GetItemText(evt.GetItem()))<BR>        
self.dprint(line()+". OnSelChanged:", 
self.tablecont)<BR>        
self.TreeViewController(self.tablecont)<BR></FONT></SPAN></DIV>
<DIV><SPAN class=315593611-21122008><FONT face=Arial size=2><FONT 
face="Courier New">self.Bind(wx.EVT_TREE_SEL_CHANGED, self.OnSelChanged, 
self.tree)</FONT><BR></FONT></DIV>
<DIV></SPAN><SPAN class=315593611-21122008></SPAN><FONT face=Arial><FONT 
size=2>Bye,</FONT></FONT></DIV>
<DIV><SPAN class=315593611-21122008></SPAN><SPAN 
class=315593611-21122008></SPAN><FONT face=Arial><FONT size=2>R<SPAN 
class=315593611-21122008>on.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=315593611-21122008></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><SPAN class=315593611-21122008><FONT size=2>P.S.: I think 
you'd get better responses if you asked this question on </FONT><A 
href="mailto:wxpython-users@lists.wxwidgets.org"><FONT color=#000000 
size=2>wxpython-users@lists.wxwidgets.org</FONT></A></SPAN></FONT></DIV>
<DIV><BR></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Eric Atienza - eric@ericaro.net 
  [mailto:+ericericaro+comverse+2e4452f01c.eric#ericaro.net@spamgourmet.com] 
  <BR><B>Sent:</B> Thursday, December 18, 2008 15:47<BR><B>To:</B> 
  ericericaro.comverse@9ox.net<BR><B>Subject:</B> Re: Best Practice using 
  Glade/Python (ericericaro: message 1 of 20)<BR></FONT><BR></DIV>
  <DIV></DIV>Hi, thank for the response (but it ain't in the usenet).<BR><BR>I'm 
  looking for best pratices about connecting 'events' from a glade defined UI, 
  and python code.<BR><BR>How to you manage it ?<BR><BR><BR><BR 
  clear=all>Eric<BR><A 
  href="http://codeslash.blogspot.com">http://codeslash.blogspot.com</A><BR><BR>
  <DIV class=gmail_quote>On Thu, Dec 18, 2008 at 2:25 PM, <SPAN dir=ltr><<A 
  href="mailto:ericericaro.comverse@9ox.net">ericericaro.comverse@9ox.net</A>></SPAN> 
  wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi 
    Eric,<BR>I'm not sure if I answer your question, but I designed wxPython GUI 
    with wxGlade (<A href="http://wiki.wxpython.org/wxGlade" 
    target=_blank>http://wiki.wxpython.org/wxGlade</A>).<BR>Bye,<BR>Ron.<BR><BR>-----Original 
    Message-----<BR>From: eric [mailto:<A 
    href="mailto:eric@ericaro.net">eric@ericaro.net</A>]<BR>Sent: Thursday, 
    December 18, 2008 12:39<BR>To: <A 
    href="mailto:python-list@python.org">python-list@python.org</A><BR>Subject: 
    Best Practice using Glade/Python<BR><BR>Hi,<BR><BR>I was wondering which is 
    the "best practice" using glade/python, and, of course, especially the 
    connect (both side).<BR><BR>I didn't found that much documentation on the 
    net ( too noisy), and the best "thing" I've found was <A 
    href="http://www.linuxjournal.com/article/7558" 
    target=_blank>http://www.linuxjournal.com/article/7558</A><BR>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.<BR><BR>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.<BR><BR>So here is the question, do you practive galde/python, which is 
    your practice ?<BR><BR>Thanks<BR><BR><BR>Eric<BR><A 
    href="http://codeslash.blogspot.com" 
    target=_blank>http://codeslash.blogspot.com</A><BR><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>