99scraper = itslearning_scraper ()
1010
1111def download (btn ):
12- courses = scraper .find_all_courses ()
12+ courses = scraper .get_courses ()
1313 course_links = {}
1414 for i , label in enumerate (courses ):
1515 selected = app .getCheckBox (courses [label ])
@@ -52,7 +52,7 @@ def press(btn):
5252
5353 app .startLabelFrame ("Courses to download" )
5454 j = 0
55- k = 1
55+ k = 0
5656 for i , label in enumerate (courses ):
5757 app .addCheckBox (courses [label ], k , j )
5858 #app.setCheckBox(courses[label],ticked=True, callFunction=False)
@@ -70,8 +70,8 @@ def press(btn):
7070 app .addLabel ("path" , path , space + 2 , 1 )
7171 app .stopLabelFrame ()
7272 app .startLabelFrame ("Optional Actions" )
73- app .addButton ("Select none " , select_none , 0 , 0 , 0 )
74- app .addButton ("Select all " , select_all , 0 , 1 , 0 )
73+ app .addButton ("Select all " , select_all , 0 , 0 , 0 )
74+ app .addButton ("Select none " , select_none , 0 , 1 , 0 )
7575 app .stopLabelFrame ()
7676 app .startLabelFrame ("Final step" )
7777 app .addButton ("Download" , download , 0 , 0 , 2 )
0 commit comments