Skip to content

Commit 8e2f7c2

Browse files
committed
feat: rename item to topic in question generation for clarity
1 parent 18fa95f commit 8e2f7c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def generate_questions():
2121
messagebox.showerror("Error", "Please enter a valid subject.")
2222
return
2323

24-
item = item_entry.get().strip()
24+
topic = topic_entry.get().strip()
2525
age_group = age_group_entry.get()
2626

2727
if not age_group:
@@ -33,7 +33,7 @@ def generate_questions():
3333
root.update_idletasks()
3434

3535
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)
3737
result_text.set("Finished generating questions!")
3838
except Exception as e:
3939
messagebox.showerror("Error", f"An error occurred: {e}")
@@ -74,10 +74,10 @@ def generate_questions():
7474
subject_menu = ttk.Combobox(root, textvariable=subject_var, values=[s.name for s in Subject])
7575
subject_menu.pack()
7676

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()
8181

8282
# Age Group
8383
ttk.Label(root, text="Age Group:", background="#f0f0f0").pack(pady=5)

0 commit comments

Comments
 (0)