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
-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
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,
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 =