Refactor to modern CustomTkinter GUI with modular architecture - #1
Merged
Conversation
- Replace the legacy Tkinter GUI + VBS/BAT launchers with a single CustomTkinter app (sidebar navigation: Home, Hotkeys, Settings, About) - Run the hotkey engine in-process instead of a subprocess with move_pixels.txt file IPC; hotkeys are unchanged - Move help and theme popups into proper pages inside the app - Persist settings to %APPDATA%\WindowControlTool\settings.json - Fix the broken multi-monitor hotkey (missing win32api import) and make it wrap around monitors - Add packaging (pyproject.toml, requirements.txt) and a GitHub Actions workflow that lints, builds WindowControlTool.exe and attaches it to releases on version tags - Add README, CONTRIBUTING, CODE_OF_CONDUCT, issue/PR templates, .gitignore; relicense under MIT - Remove the old scripts and assets https://claude.ai/code/session_011BNLUVMFyL8WymEQG8myTp
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete rewrite of the Window Control Tool from a basic Tkinter GUI to a modern, modular application using CustomTkinter. The codebase is now properly structured as a Python package with separated concerns: GUI, hotkey engine, window actions, and configuration management.
Key Changes
New GUI (
src/window_control_tool/gui.py): Modern CustomTkinter interface with a sidebar navigation system featuring four pages (Home, Hotkeys, Settings, About). Replaces the old Tkinter-basedtogglewindowsGUI.pywith a cleaner, more maintainable design.Modular architecture:
hotkeys.py: Global hotkey registration and management with theHotkeyEngineclasswindow_actions.py: Isolated win32 window operations (move, resize, opacity, always-on-top)config.py: Persistent settings stored in%APPDATA%\WindowControlToolinstead of local JSON files__main__.py: Proper entry point for both source and packaged exe executionRemoved legacy files: Deleted
togglewindows.py,togglewindowsGUI.py,GUI.vbs, and related configuration files (move_pixels.txt,settings.json, image assets)License change: Replaced GPLv2 with MIT license
Project metadata: Added
pyproject.tomlfor proper Python packaging,requirements.txtfor dependencies, and comprehensive documentation (README.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md)CI/CD: Added GitHub Actions workflow (
.github/workflows/build.yml) for linting, building Windows exe with PyInstaller, and automated releasesIssue templates: Added bug report and feature request templates for better issue management
Notable Implementation Details
https://claude.ai/code/session_011BNLUVMFyL8WymEQG8myTp