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

View File

@ -1,11 +1,11 @@
from tkinter import * from tkinter import *
from api.ncnu import NCNU from api.ncnu import NcnuAPI
from config import CONFIG 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(CONFIG['NCNU']['username'], CONFIG['NCNU']['password']) 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):

View File

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