This PyQt5 application provides a user-friendly interface for managing and manipulating CSS stylesheets.
Features
- Color Selection: Use intuitive sliders or hex code input fields to set background and foreground colors.
- Dynamic Preview: Get immediate feedback on the selected color combinations with a live preview area.
- Margin and Padding Controls: Adjust margins and padding using dedicated sliders.
- CSS File Handling:
- Splitting: Divide large CSS files into smaller, more manageable blocks.
- Merging: Combine multiple CSS blocks into a single file.
- Saving: Save changes to CSS files.
- Editing: Directly edit CSS files within the application.
Getting Started
- Clone the project:
git clone https://github.com/Woff3037/PyCSSEditor.git
cd PyCSSEditor- Install dependencies:
Install the appropriate requirements file for your platform:
# For common dependencies (all platforms)
pip install -r requirements.txt
# For Windows (includes Windows-specific packages)
pip install -r requirements-windows.txt
# For Linux
pip install -r requirements-linux.txt
# For macOS
pip install -r requirements-macos.txt- Build the executable:
python setup.pyThe executable file will be created within the dist folder.
Execution
You can run the application directly or use the built executable:
# Run directly (cross-platform)
python main.py
# Or run the built executable from dist/ folder- On Windows: Double-click the
.exefile or run it from command line - On Linux: Run the executable from terminal
- On macOS: Run the executable from terminal or double-click the app bundle
Requirements
- Python 3.12 or newer
- Platform-specific dependencies (see requirements files above)
Platform Support
PyCSSEditor is cross-platform and supports:
- Windows (10+)
- Linux (most distributions)
- macOS (10.15+)
Note for Windows Users: The application previously used a .pyw extension. It has been changed to .py for cross-platform compatibility. On Windows, you can still run without a console window by using pythonw.exe main.py or building with PyInstaller (which automatically hides the console for GUI applications).
Contact
Feel free to raise issues or contribute to the project on GitHub repository.