
    G@dk                     :    d Z ddlmZ ddlZ G d de          ZdS )z
Base variable explorer dialog
    )QDialogNc                   2     e Zd ZddZ	 	 ddZ fdZ xZS )
BaseDialogNc                     t          j        | |           t          j                                        }|j                            d           |                     |                                           d S )Nz3px 15px 3px 15px)padding)	r   __init__	qstylizerstyle
StyleSheetQPushButton	setValuessetStyleSheettoString)selfparentcsss      Rlib/python3.11/site-packages/spyder/plugins/variableexplorer/widgets/basedialog.pyr   zBaseDialog.__init__   sp    v&&& o((**!!' 	" 	
 	
 	
 	3<<>>*****          ?c                    t          |                                |z            }t          |                                |z            }|                     ||           t          |                                                                |                                 dz  z
            }t          |                                                                |                                 dz  z
            }|                     ||           dS )z
        Update width and height using an updated screen geometry.
        Use a ratio for the width and height of the dialog.
           N)intwidthheightresizecenterxymove)r   screen_geometrywidth_ratioheight_ratioscreen_widthscreen_heightr   r   s           r   set_dynamic_width_and_heightz'BaseDialog.set_dynamic_width_and_height   s     ?0022[@AAO2244|CDDL-000 &&((**,,tzz||a/??@@&&((**,,t{{}}q/@@AA		!Qr   c                 ^   t          t          |                                            |                                 }|                                }|                                }|                                }|                     |           |j        	                    | j                   d S N)
superr   showwindowwindowHandlescreengeometryr%   geometryChangedconnect)r   r*   r+   r,   r-   	__class__s        r   r)   zBaseDialog.show+   s    j$$$&&&**,,$$&&??$$))(333&&t'HIIIIIr   r'   )r   r   )__name__
__module____qualname__r   r%   r)   __classcell__)r0   s   @r   r   r      ss        + + + + IL25   J J J J J J J J Jr   r   )__doc__qtpy.QtWidgetsr   qstylizer.styler	   r    r   r   <module>r9      sm    
 # " " " " "    "J "J "J "J "J "J "J "J "J "Jr   