lib.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:smartschool 作者: asifkodur 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号