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-08 Thread ALAN GAULD
-g.me.uk/ From: Prasad, Ramit ramit.pra...@jpmorgan.com To: Alan Gauld alan.ga...@btinternet.com; tutor@python.org 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

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,

[Tutor] how to link GUI app to the code

2011-12-05 Thread surya k
I have designed a application using WxGlade but I don't know how to link it to my code and run it.Could you please tell me? at least it would be helpful if you could show me relevant tutorials. Here is the part of the application code that is generated using WxGlade. self.panel_6 =