-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for removing bulbs, saving general settings.
- Loading branch information
1 parent
8c60df9
commit 9589649
Showing
7 changed files
with
127 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# remove_bulb.py | ||
|
||
import tkinter as tk | ||
from tkinter import messagebox | ||
|
||
def create_remove_bulb_button(bulb_window, config_manager, config_section, refresh_callback): | ||
def remove_bulb(): | ||
if messagebox.askyesno("Remove Bulb", "Are you sure you want to remove this bulb?"): | ||
config_manager.remove_bulb(config_section) | ||
refresh_callback() | ||
bulb_window.destroy() | ||
|
||
remove_button = tk.Button(bulb_window, text="Remove", command=remove_bulb, bg='red', fg='white') | ||
return remove_button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name='ScreenSync', # Replace with your package name | ||
version='0.0.1', # Initial version | ||
author='Tom George', # Replace with your name | ||
author_email='[email protected]', # Replace with your email | ||
description='A Python tool for synchronizing screen colors with smart bulbs.', # Short description | ||
name='ScreenSync', | ||
version='0.0.2', | ||
author='Tom George', | ||
author_email='[email protected]', | ||
description='A Python tool for synchronizing screen colors with smart bulbs.', | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/dewgenenny/ScreenSync', | ||
|