from tkinter import * from tkhtmlview import HTMLLabel from api.ncnuMain import NcnuMainAPI def createNcnuMainWin(): win=Tk() win.title("暨大官網最新資訊!") win.geometry("600x600") main = NcnuMainAPI() Link='''''' sb=Scrollbar(win) htmlLable=HTMLLabel(win,html=Link) htmlLable.configure(yscrollcommand=sb.set) textLb.pack(fill="x") sb.pack(side=RIGHT,fill="y") htmlLable.pack(fill="both",expand=True) win.mainloop() createNcnuMainWin()