Skip to content

Poke Manager 8.5.5

Choose a tag to compare

@Ryukotsuki Ryukotsuki released this 02 Mar 16:10
· 76 commits to main since this release
7e8275f

Release Notes

Overview

This update brings significant improvements to window resizing and layout management. The Widgets, CustomGrip, and CustomTitleBar classes have been restructured for better organization, maintainability, and flexibility. Key highlights include enhanced grip functionality, simplified widget hierarchy, and improved compatibility with PyInstaller. Additionally, all modules and binaries have been updated, including an upgrade to Python 3.13.2.

What's New

Updated Python to the latest version 3.13.2
Updated all imports, modules, and binaries.
Updated the custom title bar.

Widgets Class

  • Restructured Layout: Simplified the Widgets class by removing container frames and layouts
    • Removed container_top, container_bottom, and their respective layouts
    • Split combined grips (top, bottom) into individual methods for each grip position
  • New Methods: Added separate methods for each grip position:
    • top_left(), top_right(), bottom_left(), bottom_right()
    • Each creates a 15x15 pixel QFrame with transparent background
  • Simplified Existing Methods:
    • top(), bottom(), left(), right() now create individual QFrames directly
    • Removed minimum/maximum size constraints in favor of fixed sizes where appropriate
  • Naming Consistency: Standardized grip naming (e.g., top_grip, left_grip instead of mixed naming)

CustomGrip Class

  • Enhanced Functionality:
    • Added support for corner grips (top_left, top_right, bottom_left, bottom_right)
    • Each corner grip now uses QSizeGrip for resizing functionality
  • Positioning Updates:
    • Adjusted geometry coordinates for better alignment (e.g., changed from (5, 5) to (0, 0) for top_left)
    • Dynamic positioning based on parent dimensions for corner grips
  • Resize Event Improvements:
    • Enhanced resizeEvent() to properly update all grip positions, including new corner grips
  • Position Parameter:
    • Changed from Qt.Edge enum to string-based position identifiers for more flexibility

CustomTitleBar Class

  • Grip Integration:
    • Added initialization of all eight grips (four edges + four corners)
    • Grips now use string position identifiers matching CustomGrip
  • Resize Handling:
    • Updated parent_resize_event() to manage all eight grip positions
    • Adjusted coordinates for corner grips (e.g., from -20 to -15 offsets)
  • Maximize Behavior:
    • Extended updateMaximizeButton() to show/hide all eight grips when maximizing/restoring
  • Styling: Maintained consistent styling with minor adjustments for grip visibility

Bug Fixes

  • Fixed potential positioning issues with corner grips by aligning them precisely at window edges
  • Corrected resize event handling to update all grip types properly
  • Improved compatibility with PyInstaller by maintaining resource path logic

General Improvements

  • Code Organization: More modular structure with a clearer separation of grip types
  • Maintainability: Simplified widget creation and positioning logic
  • User Experience: Enhanced window resizing capabilities with corner grips
  • Performance: Reduced complexity in widget hierarchy by removing unnecessary containers

Removed

  • Removed unused imports