特别鸣谢这段代码的源作者,我的大佬同学\(MetalkgLZH\)。由于我没有做什么工作,这篇随笔基本不含相关技术细节。
再次强调,这个程序的主要部分由\(MetalkgLZH\)完成。技术细节与源码可以在他的官网(貌似正在维护)查看。这个程序与\(MetalkgLZH\)、\(MiserWeyte\)(我)开发的所有后续版本遵守\(GPL~V3\)协议。
Latest update 2019.10.14:
版本V2.2:
1、添加了密码错误以及网络错误时的提示;
2、成绩输出框可手动修改的bug已修复。
公开V2.2源码:
点击查看:ZhiXue.py
#ZhiXue.py-- coding: utf-8 --
import libguizxw
from zhixuewang import Zhixuewang
import wx
import timeclass zxw_main(libguizxw.MyFrame1):
def init(self,parent):
libguizxw.MyFrame1.init(self,parent)
def button_click(self,event):
kaohao = str(self.m_textCtrl1.GetValue())
mima = str(self.m_textCtrl2.GetValue())
try:
zxw = Zhixuewang(kaohao,mima)
score = zxw.get_self_mark()
self.m_textCtrl3.SetValue(str(score))
except Exception as err:
if "Connection" in str(err):
self.m_textCtrl3.SetValue("网络异常,请检查网络连接情况")
return
if "用户名" in str(err):
self.m_textCtrl3.SetValue("用户名或密码错误")
returnapp = wx.App(False)
zxwgui = zxw_main(None)
zxwgui.Show(True)start the applications
app.MainLoop()The software included in this product contains copyrighted software that is licensed under the GPLv3.
点击查看:libguizxw.py
#libguizxw.py
-- coding: utf-8 --
###########################################################################
Python code generated with wxFormBuilder (version Jun 17 2015)