def __set_properties(self):
# begin wxGlade: Add_Student.__set_properties
self.SetTitle("Add Student")
self.SetSize((485, 100))
self.SetFocus()
self.text_ctrl_1.SetMinSize((50, 32))
self.text_ctrl_1.Value="Roll"
self.text_ctrl_1.SetForegroundColour('#9CA998')
self.text_ctrl_2.SetMinSize((80, 32))
self.text_ctrl_2.Value="Admsn No"
self.text_ctrl_2.SetForegroundColour('#9CA998')
self.text_ctrl_3.SetMinSize((220, 32))
self.text_ctrl_3.Value="Name"
self.text_ctrl_3.SetForegroundColour('#9CA998')
self.button_1.SetMinSize((85, 32))
self.text_ctrl_1.SetName("roll")
self.text_ctrl_2.SetName("ad_no")
self.text_ctrl_3.SetName("name")
self.Bind(wx.EVT_BUTTON, self.Add_Clicked, self.button_1)
self.text_ctrl_1.Bind(wx.EVT_SET_FOCUS,self.OnFocus)
self.text_ctrl_1.Bind(wx.EVT_KILL_FOCUS,self.OffFocus)
self.text_ctrl_2.Bind(wx.EVT_SET_FOCUS,self.OnFocus)
self.text_ctrl_2.Bind(wx.EVT_KILL_FOCUS,self.OffFocus)
self.text_ctrl_3.Bind(wx.EVT_SET_FOCUS,self.OnFocus)
self.text_ctrl_3.Bind(wx.EVT_KILL_FOCUS,self.OffFocus)
# end wxGlade
评论列表
文章目录