{"id":28465125,"url":"https://github.com/maxverwiebe/ctkfloatingnotifications","last_synced_at":"2025-06-30T19:31:54.063Z","repository":{"id":252279037,"uuid":"839930602","full_name":"maxverwiebe/CTkFloatingNotifications","owner":"maxverwiebe","description":"CustomTkinter-based notification widget for displaying customizable information, success, warning, and error notifications in your application.","archived":false,"fork":false,"pushed_at":"2025-02-20T09:55:43.000Z","size":26,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T05:11:30.419Z","etag":null,"topics":["customtkinter","gui","notifications","python","tkinter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxverwiebe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-08T16:00:29.000Z","updated_at":"2025-05-19T09:47:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4402a761-72ef-4273-8ad9-a7d003d16f9e","html_url":"https://github.com/maxverwiebe/CTkFloatingNotifications","commit_stats":null,"previous_names":["maxverwiebe/ctkfloatingnotifications"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxverwiebe/CTkFloatingNotifications","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxverwiebe%2FCTkFloatingNotifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxverwiebe%2FCTkFloatingNotifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxverwiebe%2FCTkFloatingNotifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxverwiebe%2FCTkFloatingNotifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxverwiebe","download_url":"https://codeload.github.com/maxverwiebe/CTkFloatingNotifications/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxverwiebe%2FCTkFloatingNotifications/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262838168,"owners_count":23372477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customtkinter","gui","notifications","python","tkinter"],"created_at":"2025-06-07T05:10:56.303Z","updated_at":"2025-06-30T19:31:54.045Z","avatar_url":"https://github.com/maxverwiebe.png","language":"Python","readme":"# CTkFloatingNotifications\n\nCTkFloatingNotifications is a custom notification manager widget built using the CustomTkinter library. It provides an easy way to display various types of notifications within a CustomTkinter application, enhancing user experience with visual alerts.\n\n![alt text](https://github.com/maxverwiebe/CTkFloatingNotifications/blob/main/preview.png?raw=true)\n\n## Features\n\n- **Information Notifications**: Display informational messages to the user.\n- **Success Notifications**: Indicate successful operations.\n- **Warning Notifications**: Alert users about potential issues.\n- **Error Notifications**: Notify users about errors.\n- **Dark Mode**: Display notifications with a dark background for better visibility in dark-themed applications.\n\n## Installation\n\nTo use CTkFloatingNotifications, you need to have CustomTkinter and CTkFloatingNotifications installed.\n```bash\npip install customtkinter\n```\n\nAnd clone this repo.\n\n## Usage\n\n### Basic Example\n\nHere's a basic example of how to use CTkFloatingNotifications in your application:\n\n```python\nimport customtkinter as ctk\nfrom CTkFloatingNotifications import NotificationManager, NotifyType\n\nclass Example(ctk.CTk):\n    def __init__(self):\n        super().__init__()\n        self.geometry(\"400x300\")\n        self.title(\"Notification Example\")\n        self.notification_manager = NotificationManager(self)\n\n        self.notify_button_info = ctk.CTkButton(self, text=\"Show Info\", command=lambda: self.notification_manager.show_notification(\"This is an info notification!\", NotifyType.INFO), fg_color=\"#00bfff\", hover_color=\"#009acd\")\n        self.notify_button_info.pack(pady=10)\n        \n        self.notify_button_success = ctk.CTkButton(self, text=\"Show Success\", command=lambda: self.notification_manager.show_notification(\"This is a success notification!\", NotifyType.SUCCESS), fg_color=\"#28a745\", hover_color=\"#218838\")\n        self.notify_button_success.pack(pady=10)\n        \n        self.notify_button_warning = ctk.CTkButton(self, text=\"Show Warning\", command=lambda: self.notification_manager.show_notification(\"This is a warning notification!\", NotifyType.WARNING), fg_color=\"#ffc107\", hover_color=\"#e0a800\")\n        self.notify_button_warning.pack(pady=10)\n        \n        self.notify_button_error = ctk.CTkButton(self, text=\"Show Error\", command=lambda: self.notification_manager.show_notification(\"This is an error notification!\", NotifyType.ERROR), fg_color=\"#dc3545\", hover_color=\"#c82333\")\n        self.notify_button_error.pack(pady=10)\n        \n        self.notify_button_error_dark = ctk.CTkButton(self, text=\"Show Error Dark\", command=lambda: self.notification_manager.show_notification(\"This is an error notification!\", NotifyType.ERROR, bg_color=\"#292929\", text_color=\"#b0b0b0\"), fg_color=\"#dc3545\", hover_color=\"#c82333\")\n        self.notify_button_error_dark.pack(pady=10)\n\nif __name__ == \"__main__\":\n    app = Example()\n    app.mainloop()\n```\n\n### Customization\n\n- **Notification Colors**: Customize the foreground and hover colors for buttons to match your application's theme.\n- **Dark Mode**: Use `bg_color` and `text_color` parameters to create dark-themed notifications.\n- **Notification Duration**: Adjust the duration for which the notification is displayed using the `duration` parameter.\n\n#### Example:\n\n```python\nself.notification_manager.show_notification(\n    \"This is a custom notification!\",\n    notify_type=NotifyType.INFO,\n    duration=7000,  # Display for 7 seconds\n    bg_color=\"#dbdbdb\",  # Custom background color\n    text_color=\"#262626\"  # Custom text color\n)\n```\n\n## Methods\n\n### `show_notification(message, notify_type, bg_color=None, text_color=None)`\n\n- **Description**: Display a notification with the specified message and type.\n- **Parameters**: \n  - `message` (str): The message to display in the notification.\n  - `notify_type` (NotifyType): The type of notification (INFO, SUCCESS, WARNING, ERROR).\n  - `bg_color` (str, optional): Background color of the notification.\n  - `text_color` (str, optional): Text color of the notification.\n\n### Notification Types\n\n- `NotifyType.INFO`: For informational messages.\n- `NotifyType.SUCCESS`: For success messages.\n- `NotifyType.WARNING`: For warning messages.\n- `NotifyType.ERROR`: For error messages.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request with your improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [CustomTkinter](https://github.com/TomSchimansky/CustomTkinter) for providing a great framework for creating modern and customizable GUI applications in Python.\n\nFeel free to customize this README to better suit your project's specific details and needs!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxverwiebe%2Fctkfloatingnotifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxverwiebe%2Fctkfloatingnotifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxverwiebe%2Fctkfloatingnotifications/lists"}