[Tutor] how to link GUI app to the code

surya k suryak at live.com
Tue Dec 6 05:30:39 CET 2011


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 = wx.Panel(self.notebook_main_home, -1)        self.label_title = wx.StaticText(self.notebook_main_home, -1, "Enter Names", style=wx.ALIGN_CENTRE)        self.panel_7 = wx.Panel(self.notebook_main_home, -1)        self.label_name1 = wx.StaticText(self.notebook_main_home, -1, "Name 1", style=wx.ALIGN_CENTRE)        self.text_ctrl_name1 = wx.TextCtrl(self.notebook_main_home, -1, "")        self.text_ctrl_output = wx.TextCtrl(self.notebook_main_home, -1, "", style=wx.TE_READONLY)        self.label_name2 = wx.StaticText(self.notebook_main_home, -1, "Name 2")        self.text_ctrl_name2 = wx.TextCtrl(self.notebook_main_home, -1, "")        self.panel_5 = wx.Panel(self.notebook_main_home, -1)        self.panel_8 = wx.Panel(self.notebook_main_home, -1)        self.button_submit = wx.Button(self.notebook_main_home, -1, "Submit")        self.panel_9 = wx.Panel(self.notebook_main_home, -1)
Those bold lines are where I suppose to give controls.
1. self.text_ctrl_name1 : here I need to give input name12. self.text_ctrl_name2 : here I need to give input name23. self.button_submit: The program should take the above input values after clicking this button4. self.text_ctrl_output : here I need to get output.
As far as my program is concerned, its just a small string manipulation program based upon the input names. 

How could I do this? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111206/d04b6d13/attachment.html>


More information about the Tutor mailing list