
    G@d)                         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'             dS dS )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dS )AboutDialogc                    t          j        | |           |                     |                                 t          j         z             t                      }d}|d         r|d         }d|d|d}|                                 }|                                }t          j
        }t          j        }t          j        }	t          j        }
d}d}d}d	}t          d                    g d
| d|	 dt"           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 ]}|                    d'           |                    t          j                   |                    d'           |                    t          j                   |                    d(d)d*d)           d+}t?          tA          |                    }t          |           | _!        | j!        "                    |#                    d,t          j$                             | j!                            t          j%                   t          d-&                    |d.         ||d/         ||	0                    | _'        | j'                            t          j(                   tS          tU          d1                    }tW          tV          j,                  }|-                    d2| d3|            |-                    d2| d3|            | .                    t_          j0        d4                     | 1                    d5           te                      }|3                    | j!                   |3                    | j'                   |                    d6d)d(d)           ti          |           }|5                    d'           |6                    | j                   ti          |           }|5                    d'           |6                    | j                   ti          |           }|5                    d'           |6                    | j                   to                      | _8        | j8        9                    |tU          d7                     | j8        9                    |tU          d8                     | j8        9                    |tU          d9                     | j8        -                    d:|
            tu                      }|3                    | j8                   |;                    |j<                   |                    d)d(d(d)           tu                      }|3                    |           |3                    |           |                    d,d6d)d6           |=                                 te                      }|>                    |           |>                    |           |;                    |j<                   tu          |           }|>                    |           |>                    |           |j?        @                    | jA                   |jB        @                    | jC                   | D                    d;d<           t          jF                    }|G                                }|j         H                    |
=           |j        H                    |
=           | -                    t          |                     d>S )?z4Create 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=
            </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_sizer/   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                                4lib/python3.11/site-packages/spyder/widgets/about.pyr6   zAboutDialog.__init__$   s!	   v&&&""@!@@	B 	B 	B>>J 	9:&CC.1cc3338G yy{{kkmm%4'7/	"/"B7<;?$     '2   $-    "    X&    *2))<        h    #+<"8     h!     #+9"5!   & "'   & <G'   * #+   * ?J+   . $/      8  &'2 $-  "  "   "! " (#     > "-'2- -$-- - "- - "- -R "S- - -. .` )4+?&( 	3 	3Ed###r{+++&&t,,,))"*CDDD$$RB2222&6677    b&=>>	@ 	@ 	@##BN333
 V){+#  ! !" "	" 		r///!/0033 0 344 9): 9 9'69 9 	: 	: 	: 8(9 8 8&58 8 	9 	9 	9 	38$;<<===e  MM	DN+++DI&&&$$RB222%d++**4000!!$"5666&t,,++D111""4#7888"4((''---t/000LL		!J--888	)1[>>:::	qzz222	:!8::	< 	< 	< ]]
TY'''$$Z%<===%%aR333 ]]
S!!!T"""%%c2q"555--*%%%*%%%!!'"6777 &&
Y'''W%%% 	D2333dk*** 	C %''  "".EFFF
-DEEE3s88$$$$$    c                 j    t          j                                        t                                 d S )N)r   	clipboardsetTextr   )ro   s    r   rg   zAboutDialog.copy_to_clipboard  s,      (():)<)<=====r   N)__name__
__module____qualname__r6   rg    r   r   r   r   "   s6        h% h% h%T> > > > >r   r   c                      ddl m}   |             }t          d          }|                                 t	          j        |                                           dS )zRun about widget testr   )qapplicationN)spyder.utils.qthelpersr   r   showsysexitexec_)r   appabts      r   testr     sY     433333
,..C
d

CHHJJJHSYY[[r   __main__))__doc__r   qtpy.QtCorer   
qtpy.QtGuir   qtpy.QtWidgetsr   r   r   r   r	   r
   r   r   r   r+   r   rB   r   rE   r   rD   r   rA   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      s   1 0 


            5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
                !           ) ) ) ) ) ) : : : : : : . . . . . . ? ? ? ? ? ? ? ?m> m> m> m> m>' m> m> m>`   zDFFFFF r   