tik_manager4.ui.widgets.screenshot ================================== .. py:module:: tik_manager4.ui.widgets.screenshot Classes ------- .. autoapisummary:: tik_manager4.ui.widgets.screenshot.ScreenShot Functions --------- .. autoapisummary:: tik_manager4.ui.widgets.screenshot.take_screen_area Module Contents --------------- .. py:class:: ScreenShot(file_path) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QDialog` This module captures a selected area of the screen. Attributes: file_path (str): The path where the screenshot will be saved. image_map (QPixmap): Stores the captured image. origin (QPoint): The starting point of the selection rectangle. .. py:method:: mouseMoveEvent(event) Handles mouse movement to resize the selection area. Args: event (QMouseEvent): The mouse move event. .. py:method:: mousePressEvent(event) Handles mouse press events to start the selection. Args: event (QMouseEvent): The mouse press event. .. py:method:: mouseReleaseEvent(event) Handles mouse release events to finalize the screenshot. Args: event (QMouseEvent): The mouse release event. .. py:method:: paintEvent(event) Handles painting the semi-transparent overlay and selection area. Args: event (QPaintEvent): The paint event. .. py:function:: take_screen_area(file_path) Initiates the screen capture process and returns the saved file path. Args: file_path (str): The path where the screenshot will be saved. Returns: str or None: The file path if the screenshot is successfully taken, otherwise None.