3
7ßL]  ã               @   s†   d Z ddlZddlZddlZddl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 )z$ Enthought pyface package component
é    N)ÚInstanceÚListÚprovidesÚUnicode)ÚIAboutDialogÚMAboutDialog)ÚImageResourceé   )ÚDialogaN  
<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>
      wxPython %s<br>
      </p>
      <p>
      Copyright &copy; 2003-2010 Enthought, Inc.
      </p>

      <p>
        <wxp module="wx" class="Button">
          <param name="label" value="%s">
          <param name="id"    value="ID_OK">
        </wxp>
      </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  |j ƒ d k	r|j ƒ jƒ }nd}d| | _| jjƒ }| jj}dj| jƒ}|jƒ d }t	j
j|d|dfd�}tjdtjjdƒ… }t	j}	| jd kr”d	}
n| j}
|jt||||	|
f ƒ |jt	jƒ}|jƒ  |jƒ }|jd|jƒ fƒ |jƒ \}}|j||d
 fƒ d S )NÚ zAbout %sz<br />éP   r	   )Úsizer   ú(ÚOKé
   éÿÿÿÿr   r   )Z	GetParentZGetTitleÚtitleÚimageZcreate_imageZabsolute_pathÚjoinÚ	additionsZGetWidthÚwxÚhtmlZ
HtmlWindowÚsysÚversionÚfindZVERSION_STRINGZok_labelZSetPageÚ_DIALOG_TEXTZFindWindowByIdZID_OKZ
SetDefaultZGetInternalRepresentationZSetSizeZ	GetHeightZGetSizeZSetClientSize)ÚselfÚparentr   r   Úpathr   Úwidthr   Ú
py_versionZ
wx_versionÚokZ	ok_buttonZinternalÚheight© r$   ú=/tmp/pip-install-5sebvq2j/pyface/pyface/ui/wx/about_dialog.pyÚ_create_contentsY   s,    


zAboutDialog._create_contentsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r&   r$   r$   r$   r%   r   H   s   r   )r*   r   r   Zwx.htmlZwx.lib.wxpTagZ
traits.apir   r   r   r   Zpyface.i_about_dialogr   r   Zpyface.image_resourcer   Údialogr
   r   r   r$   r$   r$   r%   Ú<module>   s   #