← /projectsAppsPython · Tkinter

Productivity tool to organize tasks, track progress, and practice database-like data management.

Built with Python and Tkinter. The code is on GitHub.

Smart Task Manager is a productivity application designed for organizing and tracking tasks efficiently. It features a simple interface allowing users to add, delete, and view tasks with checkbox functionality for tracking completion status.

What it does

  • Add and delete tasks dynamically
  • Checkbox-based completion tracking
  • View all tasks in a dialog
  • Input validation for empty tasks
  • Clean and intuitive interface

From the code

python
import tkinter as tk
from tkinter import messagebox

tasks = []

def add_task():
    task_text = task_entry.get().strip()
    if task_text:
        var = tk.BooleanVar()
        cb = tk.Checkbutton(task_frame, text=task_text,
                            variable=var, anchor="w")
        cb.pack(fill="x", padx=5, pady=2)
        tasks.append((task_text, var, cb))
        task_entry.delete(0, tk.END)
    else:
        messagebox.showwarning("Input Error", "Please enter a task.")

def delete_task():
    to_remove = [t for t in tasks if t[1].get()]
    if not to_remove:
        messagebox.showwarning("Selection Error",
                               "No task selected to delete.")
        return
    for task_text, var, cb in to_remove:
        cb.destroy()
        tasks.remove((task_text, var, cb))

root = tk.Tk()
root.title("Cool To-Do List")
root.geometry("400x450")

task_entry = tk.Entry(root, width=30)
task_entry.pack(pady=10)

add_button = tk.Button(root, text="Add Task", command=add_task)
add_button.pack(pady=5)

task_frame = tk.Frame(root)
task_frame.pack(pady=10, fill="both", expand=True)

root.mainloop()

Keep reading

A few sentences is plenty. If it's a fit, our first call starts with the work instead of an intro.

Send me a noteClass of 2029