
    Je*                         d Z ddlZddlmZ ddlmZ ddlmZmZm	Z	m
Z
mZmZmZmZmZ ddlmZmZmZmZmZmZ ddlmZ ddlmZ dd	lm Z  dd
l!m"Z" ddl#m$Z$m%Z%  G d de      Z&d Z'e(dk(  r e'        yy)z*Module serving the "About Spyder" function    N)Qt)QPixmap)	QApplicationQDialogQDialogButtonBoxQHBoxLayoutQVBoxLayoutQLabelQPushButtonQScrollArea
QTabWidget)__project_url____forum_url____trouble_url____website_url__get_versionsget_versions_text)_)ima)get_image_path)QStylePalette)APP_STYLESHEETDialogStylec                       e Zd Zd Zd Zy)AboutDialogc                    t        j                  | |       | j                  | j                         t        j
                   z         t               }d}|d   r|d   }d|d|d}| j                         }|j                         }t        j                  }t        j                  }t        j                  }	t        j                  }
d}d}d}d	}t        dj!                  g d
| d|	 dt"         d|d    d|d    d|d    d|d    d|d    d|d    d|d    d|d    dt$         d| d| d| d| d            | _        t        d
| d|	 d t$         d!t(         d"t$         d#t*         d$      | _        t        d
| d|	 d%t$         d&t$         d't$         d(      | _        | j&                  | j,                  | j.                  fD ]v  }|j1                  d)       |j3                  t        j4                         |j7                  d)       |j9                  t        j:                         |j=                  d*d+d,d+       x d-}t?        tA        |            }t        |       | _!        | jB                  jE                  |jG                  d.t        jH                               | jB                  j3                  t        jJ                         t        d/jM                  |d0   ||d1   ||	2            | _'        | jN                  j3                  t        jP                         tS        tU        d3            }tW        tV        jX                        }|j[                  d4| d5|        |j[                  d4| d5|        | j]                  t_        j`                  d6             | jc                  d7       te               }|jg                  | jB                         |jg                  | jN                         |j=                  d8d+d*d+       ti        |       }|jk                  d)       |jm                  | j&                         ti        |       }|jk                  d)       |jm                  | j,                         ti        |       }|jk                  d)       |jm                  | j.                         to               | _8        | jp                  js                  |tU        d9             | jp                  js                  |tU        d:             | jp                  js                  |tU        d;             | jp                  j[                  d<|
        tu               }|jg                  | jp                         |jw                  |jx                         |j=                  d+d*d*d+       tu               }|jg                  |       |jg                  |       |j=                  d.d8d+d8       |j{                          te               }|j}                  |       |j}                  |       |jw                  |jx                         tu        |       }|j}                  |       |j}                  |       |j~                  j                  | j                         |j                  j                  | j                         | j                  d=d>       t        j                         }|j                         }|j                   j                  |
?       |j                  j                  |
?       | j[                  t        |             y@)Az4Create About Spyder dialog with general information. revisionz5<a href='https://github.com/spyder-ide/spyder/commit/z'>z</a>)zhttps://twitter.com/Spyder_IDE)z"https://www.facebook.com/SpyderIDE)z"https://www.youtube.com/Spyder-IDE)z$https://www.instagram.com/spyderide/z'
            <div style='font-family: "z&";
                        font-size: z;
                        font-weight: normal;
                        '>
            <br>
            <p>
            <b> Spyder IDE</b>
            <br> <br>
            The Scientific Python Development Environment |
            <a href="zI">Spyder-IDE.org</a>
            <br>
            <p>
            Python python bitnessz-bit |
            Qt qtz |
            qt_api
qt_api_versystemreleasez (machinez>)
            </p>
            <br> <br>
            <a href="z">GitHub</a> | <a href="z2">
            Twitter</a> |
            <a href="z">Facebook</a> | <a href="z2">
            YouTube</a> |
            <a href="z#">Instagram</a>

            </div>z;
                        font-weight: normal;
                        '>
            <br>
            <p>
            Created by Pierre Raybaut; current maintainer is Carlos Cordoba.
            Developed by the
            <a href="a   /graphs/contributors">international
            Spyder community</a>. Many thanks to all the Spyder beta testers
            and dedicated users.
            </p>
            <p>For help with Spyder errors and crashes, please read our
            <a href="zr">Troubleshooting Guide</a>, and for bug
            reports and feature requests, visit our
            <a href="zH">Github site</a>. For project discussion,
            see our <a href="a  ">Google Group</a>.
            </p>
            <p>
            This project is part of a larger effort to promote and
            facilitate the use of Python for scientific and engineering
            software development.
            The popular Python distributions
            <a href="https://www.anaconda.com/download/">Anaconda</a> and
            <a href="https://winpython.github.io/">WinPython</a>
            also contribute to this plan.
            </p>
            </div>z;
                        font-weight: normal;
                        '>
            <br>
            <p>
            Copyright &copy; 2009-2020 Spyder Project Contributors and
            <a href="zj/blob/master/AUTHORS.txt">others</a>.
            Distributed under the terms of the
            <a href="a(  /blob/master/LICENSE.txt">MIT License</a>.
            </p>
            <p>
            <p>Certain source files under other compatible permissive
            licenses and/or originally by other authors.
            Spyder 3 theme icons derived from
            <a href="https://fontawesome.com/">Font Awesome</a> 4.7
            (&copy; 2016 David Gandy; SIL OFL 1.1) and
            <a href="http://materialdesignicons.com/">Material Design</a>
            (&copy; 2014 Austin Andrews; SIL OFL 1.1).
            Most Spyder 2 theme icons sourced from the
            <a href="https://www.everaldo.com">Crystal Project iconset</a>
            (&copy; 2006-2007 Everaldo Coelho; LGPL 2.1+).
            Other icons from
            <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>
            (&copy; 2013 Yusuke Kamiyamane; CC-BY 3.0),
            the <a href="http://www.famfamfam.com/lab/icons/silk/">FamFamFam
            Silk icon set</a> 1.3 (&copy; 2006 Mark James; CC-BY 2.5), and
            the <a href="https://www.kde.org/">KDE Oxygen icons</a>
            (&copy; 2007 KDE Artists; LGPL 3.0+).
            </p>
            <p>
            Splash screen photo by
            <a href="https://unsplash.com/@benchaccounting?utm_source=
            unsplash&utm_medium=referral&utm_content=creditCopyText">Bench
            Accounting</a> on <a href="https://unsplash.com/?utm_source=
            unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash
            </a>
            </p>
            <p>
            See the
            <a href="z/blob/master/NOTICE.txt">NOTICE</a>
            file for full legal information.
            </p>
            </div>
            T   r      spyder_aboutd   a+  
            <div style='font-family: "{font_family}";
                font-size: {font_size};
                font-weight: normal;
                '>
            <p>
            <b>Spyder IDE</b>
            <br>{spyder_ver}
            <br>{revision}
            <br>({installer})
            <br>spyder	installer)
spyder_verr   r-   font_family	font_sizezCopy version infozfont-size: z
;padding: MessageBoxInformationF   Overview	CommunityLegalzbackground-color: i&  i  )backgroundColorN)Jr   __init__setWindowFlagswindowFlagsr   WindowContextHelpButtonHintr   fontfamilyr   ButtonsPaddingButtonsFontSizeContentFontSizer   COLOR_BACKGROUND_2r
   joinwebsite_urlproject_urllabel_overviewtrouble_url	forum_urllabel_communitylabel_legalsetWordWrapsetAlignmentAlignTopsetOpenExternalLinkssetTextInteractionFlagsTextBrowserInteractionsetContentsMarginsr   r   	label_pic	setPixmapscaledToWidthSmoothTransformationAlignBottomformatinfoAlignHCenterr   r   r   OksetStyleSheetsetWindowIconr   iconsetModalr	   	addWidgetr   setWidgetResizable	setWidgetr   tabsaddTabr   setSizeConstraintSetFixedSize
addStretch	addLayoutclickedconnectcopy_to_clipboardacceptedacceptresizer   get_copyget_stylesheet	setValuesstr)selfparentversionsrevlinkrevr;   r/   buttons_paddingbuttons_font_sizer0   dialog_background_colortwitter_urlfacebook_urlyoutube_urlinstagram_urllabelicon_filenamepixmapbtnbbox	piclayoutscroll_overviewscroll_communityscroll_legal
tabslayout
btmhlayoutvlayout
mainlayoutcsss                                6/usr/lib/python3/dist-packages/spyder/widgets/about.pyr7   zAboutDialog.__init__$   s   v&""@"@!@@	B>J:&C.138G yy{kkm%44'77//	"/"B"B7<;?$  ' '2m4$$-;/ "]# X&' () *2))<(=>   h  !" #+<"8!9:  h !  !"!  #+9"5!6!  79!  :B)9L8M! N!& "]'& #;'& <G-'&H'* #^+* $>+* ?J]+*K+. $_/.%/8  &''2m 4$$-; / "] #
 "] #!] #'[ )# > "''2m 4$$-; / "] #!] #> "] #S-.` ))4+?+?&&( 	3Ed#r{{+&&t,))"*C*CD$$RB2	3 '67    b&=&=>	@##BNN3
 V){+#  !"	" 			r/!/03 0 3 34[):(; <''6&79 	:K(9': ;&&5%68 	9 	388$;<=e  M	DNN+DII&$$RB2%d+**40!!$"5"56&t,++D1""4#7#78"4(''-t//0L			!J-8		)1[>:		qz2		 !8 9:	< ]
TYY'$$Z%<%<=%%aR3 ]
S!T"%%c2q"5-*%*%!!'"6"67 &
Y'W% 	D223dkk* 	C %%'  ".EF

-DE3s8$    c                 Z    t        j                         j                  t                      y )N)r   	clipboardsetTextr   )rp   s    r   rh   zAboutDialog.copy_to_clipboard  s     (():)<=r   N)__name__
__module____qualname__r7   rh    r   r   r   r   "   s    h%T>r   r   c                      ddl m}   |        }t        d      }|j                          t	        j
                  |j                                y)zRun about widget testr   )qapplicationN)spyder.utils.qthelpersr   r   showsysexitexec_)r   appabts      r   testr     s3     4
.C
d
CHHJHHSYY[r   __main__))__doc__r   qtpy.QtCorer   
qtpy.QtGuir   qtpy.QtWidgetsr   r   r   r   r	   r
   r   r   r   r,   r   rC   r   rF   r   rE   r   rB   r   r   spyder.config.baser   spyder.utils.icon_managerr   spyder.utils.image_path_managerr   spyder.utils.paletter   spyder.utils.stylesheetr   r   r   r   r   r   r   r   <module>r      si    1   5 5 5
  ! ) : . ?m>' m>` zF r   