學校官網視窗
This commit is contained in:
parent
522cd1b7ad
commit
b0475a0415
6
Ncnu.py
6
Ncnu.py
@ -4,8 +4,8 @@ from config import CONFIG
|
|||||||
from tkinter import messagebox
|
from tkinter import messagebox
|
||||||
from tkhtmlview import HTMLLabel
|
from tkhtmlview import HTMLLabel
|
||||||
|
|
||||||
def createNcnuWin():
|
def createNcnuWin(ncnu):
|
||||||
ncnu = NcnuAPI(CONFIG['NCNU']['username'], CONFIG['NCNU']['password'])
|
|
||||||
if ncnu.status:
|
if ncnu.status:
|
||||||
def dlCurriculum(sem):
|
def dlCurriculum(sem):
|
||||||
if ncnu.getCourseTable(sem):
|
if ncnu.getCourseTable(sem):
|
||||||
@ -96,5 +96,3 @@ def createNcnuWin():
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
print("NCNU 教務系統登入失敗")
|
print("NCNU 教務系統登入失敗")
|
||||||
|
|
||||||
createNcnuWin()
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user