This To-Do List application is a simple and interactive tool designed to help users manage their tasks efficiently. It is built using the Flet framework, which allows for building web, desktop, and mobile applications with a single codebase. The application includes features such as adding, viewing, and managing tasks with an intuitive user interface.
Created By: ScriptPythonic
- Add Tasks: Users can add new tasks with descriptions.
- View Tasks: All added tasks are displayed in a list with the creation date and time.
- Delete/Edit Tasks: Users can delete or edit tasks (functionality not implemented in this version).
- Responsive UI: The application interface is designed to be responsive and user-friendly.
- Python 3.8 or higher
- Flet framework
-
Clone the repository:
git clone https://github.com/ScriptPythonic/todo-list-app.git cd todo-list-app
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python main.py
-
Access the application: Open your browser and go to
http://0.0.0.0:8000
to view the To-Do List application.
This class defines a form container for adding tasks. It includes a text field for the task description and a button to add the task.
__init__
: Initializes the form container with a function to handle task addition.build
: Builds the UI components for the form container.
This class defines a task container for displaying tasks. It includes the task description and creation date.
__init__
: Initializes the task container with the task description and date.TaskDeleteEdit
: Creates a button for deleting or editing a task.build
: Builds the UI components for the task container.
This function sets up the main page and handles interactions.
AddTaskToScreen
: Adds a task to the screen.CreateToDoTask
: Toggles the visibility of the form container.- Main Container: Constructs the main container and adds it to the page.
- Final Page Setup: Updates the page and assigns the form container.
Starts the application if the script is executed directly.
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-name
- Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Flet framework for providing an easy-to-use and powerful tool for building the UI.
- Python for being the core language of the project.
Feel free to customize this README to better suit your project's specific details and structure.