3
N ŸZ‰  ã               @   s,   d dl T d dlT d dlT G dd„ deƒZdS )é    )Ú*c               @   s<   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ ZdS )ÚReadOnlyRadioButtonc             C   s$   t j| |ƒ | jtjƒ | jƒ  d S )N)ÚQRadioButtonÚ__init__ZsetFocusPolicyÚQtZNoFocusZ
clearFocus)ÚselfÚparent© r	   ú+/usr/share/hplip/ui5/readonlyradiobutton.pyr      s    zReadOnlyRadioButton.__init__c             C   s    |j ƒ tjkrd S tj|ƒ d S )N)Úbuttonr   Ú
LeftButtonr   ÚmousePressEvent)r   Úer	   r	   r
   r   %   s    z#ReadOnlyRadioButton.mousePressEventc             C   s    |j ƒ tjkrd S tj|ƒ d S )N)r   r   r   r   ÚmouseReleaseEvent)r   r   r	   r	   r
   r   ,   s    z%ReadOnlyRadioButton.mouseReleaseEventc             C   s   d S )Nr	   )r   r   r	   r	   r
   ÚmouseMoveEvent3   s    z"ReadOnlyRadioButton.mouseMoveEventc             C   s2   |j ƒ tjtjtjtjtjfkr$d S tj|ƒ d S )N)	Úkeyr   ZKey_UpZKey_LeftZ	Key_RightZKey_DownZ
Key_Escaper   ÚkeyPressEvent)r   r   r	   r	   r
   r   7   s    z!ReadOnlyRadioButton.keyPressEventc             C   s   d S )Nr	   )r   r   r	   r	   r
   ÚkeyReleaseEvent?   s    z#ReadOnlyRadioButton.keyReleaseEventN)	Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r	   r	   r	   r
   r      s   r   N)ZPyQt5.QtCoreZPyQt5.QtGuiZPyQt5.QtWidgetsr   r   r	   r	   r	   r
   Ú<module>   s   