fix: 修正錯誤的API名稱

This commit is contained in:
Ting-Jun Wang 2021-07-03 01:28:49 +08:00
parent 95a2bad77b
commit 397e28a62c
Signed by: snsd0805
GPG Key ID: 8DB0D22BC1217D33
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
from tkinter import *
from api.moodle import Moodle
from api.moodle import MoodleAPI
from config import CONFIG
from tkhtmlview import HTMLLabel
@ -14,7 +14,7 @@ def getIdAndName(course):
def createMoodleWin():
moodle = Moodle(CONFIG['moodle']['username'], CONFIG['moodle']['password'])
moodle = MoodleAPI(CONFIG['moodle']['username'], CONFIG['moodle']['password'])
if moodle.status:
# ===== 取得課程ID與名稱 =====

View File

@ -1,11 +1,11 @@
from tkinter import *
from api.ncnu import NCNU
from api.ncnu import NcnuAPI
from config import CONFIG
from tkinter import messagebox
from tkhtmlview import HTMLLabel
def createNcnuWin():
ncnu = NCNU(CONFIG['NCNU']['username'], CONFIG['NCNU']['password'])
ncnu = NcnuAPI(CONFIG['NCNU']['username'], CONFIG['NCNU']['password'])
if ncnu.status:
def dlCurriculum(sem):
if ncnu.getCourseTable(sem):

View File

@ -1,12 +1,12 @@
from tkinter import *
from tkhtmlview import HTMLLabel
from api.ncnuMain import NcnuMain
from api.ncnuMain import NcnuMainAPI
def createNcnuMainWin():
win=Tk()
win.title("暨大官網最新資訊!")
win.geometry("600x600")
main = NcnuMain()
main = NcnuMainAPI()
Link='''<span style="background-color:#ffcccc"><ul>'''
textLb=Label(win,text="暨大校園最新資訊",font="Helvetica 20",bg="#ffcccc")