student_profile.py 文件源码

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

项目:smartschool 作者: asifkodur 项目源码 文件源码
def on_delete(self, event):  # wxGlade: student_profie.<event_handler>
        self.button_delete.Disable()
        self.button_save.Disable()
        self.db_delete()
        self.clear_student_details()
        self.bitmap_photo.Enable(False)
        cur_dir=os.path.dirname(os.path.abspath((sys.argv[0])))
        path=cur_dir+"/Resources/profile_pic/"+str(self.current_admission_no)+".jpg"
        if os.path.isfile(path):
            path=cur_dir+"/Resources/profile_pic/"+str(self.current_admission_no)+".jpg"

            os.remove(path)
            path=cur_dir+"/Resources/img/browse.jpg"
            self.bitmap_photo = wx.BitmapButton(self.panel_1, wx.ID_ANY,wx.Bitmap(path, wx.BITMAP_TYPE_ANY))
            self.__set_properties()
            self.__do_layout()



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


问题


面经


文章

微信
公众号

扫码关注公众号