We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e7cb72 commit c7bb726Copy full SHA for c7bb726
1 file changed
mood_tracker/simple_calendar.py
@@ -0,0 +1,28 @@
1
+import tkinter as tk
2
+from tkinter import messagebox
3
+
4
+def main():
5
+ root = tk.Tk()
6
+ root.title("Habit Tracker")
7
+ root.geometry("400x300")
8
9
+ tk.Label(root, text="Habit Tracker App").pack(pady=10)
10
11
+ tk.Label(root, text="Enter Habit:").pack(pady=5)
12
+ habit_entry = tk.Entry(root)
13
+ habit_entry.pack(pady=5)
14
15
+ def add_habit():
16
+ habit = habit_entry.get()
17
+ if habit == "":
18
+ messagebox.showerror("Error", "Please enter a habit")
19
+ else:
20
+ print(f"Added habit: {habit} (placeholder)")
21
22
+ tk.Button(root, text="Add Habit", command=add_habit).pack(pady=5)
23
+ tk.Button(root, text="Exit", command=root.destroy).pack(pady=5)
24
25
+ root.mainloop()
26
27
+if __name__ == "__main__":
28
+ main()
0 commit comments