Moodle 未來事件美術優化

This commit is contained in:
molaboon 2021-07-02 22:46:32 +08:00
parent db31372490
commit fe8e5c1479

View File

@ -40,10 +40,10 @@ def createMoodleWin():
#=====Leftframe 1.button ->show UpComingEvent 2.choose courses=======
def showUpComingEvent(): #叫出未來事件
tmphtml='''<ul>'''
tmphtml=''''''
for e in moodle.getUpcomingEvents():
tmphtml+='''<li> {} 時間:{}</li>'''.format(e.get("name"),e.get("time") )
tmphtml+='''</ul>'''
tmphtml+='''<br> {} <br>時間:{} <p>'''.format(e.get("name"),e.get("time") )
#tmphtml+='''</ul>'''
htmlLb.set_html(tmphtml)
upComingEventBtn=Button(leftFrame,text="未來事件",font="Helvetica 10",command= lambda:showUpComingEvent() )