3
7ßL]…  ã               @   s‚   d dl Z d dlZd dlmZmZ d dlmZmZmZm	Z	 d dl
mZmZ d dlmZ ddlmZ dZeeƒG d	d
„ d
eeƒƒZdS )é    N)ÚQtCoreÚQtGui)ÚInstanceÚListÚprovidesÚUnicode)ÚIAboutDialogÚMAboutDialog)ÚImageResourceé   )ÚDialogaß  
<html>
  <body>
    <center>
      <table width="100%%" cellspacing="4" cellpadding="0" border="0">
        <tr>
          <td align="center">
          <p>
            <img src="%s" alt="">
          </td>
        </tr>
      </table>

      <p>
      %s<br>
      <br>
      Python %s<br>
      Qt %s<br>
      </p>
      <p>
      Copyright &copy; 2003-2010 Enthought, Inc.<br>
      Copyright &copy; 2007 Riverbank Computing Limited
      </p>
  </center>
  </body>
</html>
c               @   s.   e Zd ZdZeeƒZeeedƒƒZ	dd„ Z
dS )ÚAboutDialogz{ The toolkit specific implementation of an AboutDialog.  See the
    IAboutDialog interface for the API documentation.
    Zaboutc             C   sä   t jƒ }| jdkr:|jƒ d k	r,|jƒ jƒ }nd}d| | _| jjƒ }| jj}dj| j	ƒ}t
jƒ }tj}|jt||||f ƒ t jƒ }	| jrž|	j| jt jjƒ n|	jt jjƒ |	jj|jƒ t jƒ }
|
j|ƒ |
j|	ƒ |j|
ƒ d S )NÚ zAbout %sz<br />)r   ZQLabelÚtitleÚparentZwindowTitleÚimageZcreate_imageZabsolute_pathÚjoinÚ	additionsÚplatformÚpython_versionr   Ú__version__ZsetTextÚ_DIALOG_TEXTZQDialogButtonBoxZok_labelZ	addButtonZ
AcceptRoleZOkÚacceptedÚconnectÚacceptZQVBoxLayoutZ	addWidgetZ	setLayout)Úselfr   Úlabelr   r   Úpathr   Ú
py_versionZ
qt_versionZbuttonsZlay© r   ú>/tmp/pip-install-5sebvq2j/pyface/pyface/ui/qt4/about_dialog.pyÚ_create_contentsJ   s*    




zAboutDialog._create_contentsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r
   r   r!   r   r   r   r    r   :   s   r   )r   ÚsysZ	pyface.qtr   r   Z
traits.apir   r   r   r   Zpyface.i_about_dialogr   r	   Zpyface.image_resourcer
   Údialogr   r   r   r   r   r   r    Ú<module>   s   