institution.py 文件源码

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

项目:smartschool 作者: asifkodur 项目源码 文件源码
def on_save(self, event):  # wxGlade: institution.<event_handler>
        try:
            self.DB.Set_School_Name(self.text_ctrl_name.Value) 
            self.DB.Set_School_Code(self.text_ctrl_code.Value)   

            self.DB.Set_School_Email(self.text_ctrl_email.Value)       
            self.DB.Set_School_Contact(self.text_ctrl_phone.Value)
            self.DB.Set_School_DEO(self.text_ctrl_deo.Value)
            dlg = wx.MessageDialog(self, 'Successfully Saved', '',wx.OK | wx.ICON_INFORMATION)
            dlg.ShowModal()
            dlg.Destroy()
        except:
            dlg = wx.MessageDialog(self, 'Could not save some values', '',wx.OK | wx.ICON_ERROR)
            dlg.ShowModal()
            dlg.Destroy()




        self.Close(True)
        event.Skip()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号