@@ -21,7 +21,7 @@ def generate_questions():
21
21
messagebox .showerror ("Error" , "Please enter a valid subject." )
22
22
return
23
23
24
- item = item_entry .get ().strip ()
24
+ topic = topic_entry .get ().strip ()
25
25
age_group = age_group_entry .get ()
26
26
27
27
if not age_group :
@@ -33,7 +33,7 @@ def generate_questions():
33
33
root .update_idletasks ()
34
34
35
35
try :
36
- questions = genAi .generateQuestions (number , subject , age_group , item if item else None )
36
+ questions = genAi .generateQuestions (number , subject , age_group , topic if topic else None )
37
37
result_text .set ("Finished generating questions!" )
38
38
except Exception as e :
39
39
messagebox .showerror ("Error" , f"An error occurred: { e } " )
@@ -74,10 +74,10 @@ def generate_questions():
74
74
subject_menu = ttk .Combobox (root , textvariable = subject_var , values = [s .name for s in Subject ])
75
75
subject_menu .pack ()
76
76
77
- # Item (Optional)
78
- ttk .Label (root , text = "Item (Optional):" , background = "#f0f0f0" ).pack (pady = 5 )
79
- item_entry = ttk .Entry (root )
80
- item_entry .pack ()
77
+ # topic (Optional)
78
+ ttk .Label (root , text = "Topic (Optional):" , background = "#f0f0f0" ).pack (pady = 5 )
79
+ topic_entry = ttk .Entry (root )
80
+ topic_entry .pack ()
81
81
82
82
# Age Group
83
83
ttk .Label (root , text = "Age Group:" , background = "#f0f0f0" ).pack (pady = 5 )
0 commit comments