a
    §ˆc-  ã                   @   sR   d dl mZ d dlmZ d dlmZmZ ddlmZ eeƒG dd„ deeƒƒZ	dS )	é    )ÚQtGui)Úprovides)ÚIHeadingTextÚMHeadingTexté   )ÚLayoutWidgetc                   @   s(   e Zd ZdZdd„ Zdd„ Zdd„ ZdS )	ÚHeadingTextz6 The Qt-specific implementation of a HeadingText.
    c                 C   s&   t  |¡}| t jjjt jjj¡ |S )zA Create the toolkit-specific control that represents the widget. )r   ZQLabelZsetSizePolicyZQSizePolicyÚPolicyZ	PreferredZFixed)ÚselfÚparentÚcontrol© r   ú]/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/qt4/heading_text.pyÚ_create_control   s
    
ÿzHeadingText._create_controlc                 C   s   d|› d�}| j  |¡ dS )z. Set the text on the toolkit specific widget. z<b>z</b>N)r   ZsetText©r
   Útextr   r   r   Ú_set_control_text+   s    zHeadingText._set_control_textc                 C   s   | j  ¡ }|dd… }|S )z. Get the text on the toolkit specific widget. é   éüÿÿÿ)r   r   r   r   r   r   Ú_get_control_text1   s    
zHeadingText._get_control_textN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r      s   r   N)
Z	pyface.qtr   Z
traits.apir   Zpyface.i_heading_textr   r   Zlayout_widgetr   r   r   r   r   r   Ú<module>   s
   