Re: [Tutor] how to link GUI app to the code

2011-12-08 Thread ALAN GAULD
-g.me.uk/ > > From: "Prasad, Ramit" >To: Alan Gauld ; "tutor@python.org" > >Sent: Thursday, 8 December 2011, 19:07 >Subject: RE: [Tutor] how to link GUI app to the code > >>self.Bind(wx.EVT_BUTTON, self.OnSubmit, self

Re: [Tutor] how to link GUI app to the code

2011-12-08 Thread Prasad, Ramit
>self.Bind(wx.EVT_BUTTON, self.OnSubmit, self.button_submit) How do you decide when it is appropriate to bind to a panel/frame and when to bind to the widget itself? I understand that certain events do not propagate up the widget stack, but what about for events that do? Is there a guideline of

Re: [Tutor] how to link GUI app to the code

2011-12-06 Thread Alan Gauld
On 06/12/11 04:30, surya k wrote: I have designed a application using WxGlade but I don't know how to link it to my code and run it. Glade generates wxPython code. In wxPython we bind methods to widgets using the Bind() method. Here is an example: self.Bind(wx.EVT_BUTTON, self.OnSubmit, self