관리-도구
편집 파일: configHelpSourceEdit.cpython-35.pyc
��Yf� � @ s� d Z d d l Z d d l Z d d l Td d l j Z d d l j Z Gd d � d e � Z e d k r� d d l Z e j d d d d d �d d l m Z e e � d S) zKDialog to specify or edit the parameters for a user configured help source.� N)�*c @ ss e Z d Z d d d d d � Z d d � Z d d � Z d d � Z d d � Z d d d � Z d d d � Z d S)�GetHelpSourceDialog� Fc C sO t j | | � | j d d � | j d t d t � | j | � | j | � | j � | j d | j � | | _ d | _ | j � | j j | � | j j | � | j � | j � | j d | j � | j � d | j � d | j � | s| j � d | j � d n d f � | j � | j d | j � | j � d S)a2 Get menu entry and url/ local file location for Additional Help User selects a name for the Help resource and provides a web url or a local file as its source. The user can enter a url or browse for the file. _htest - bool, change box location when running htest �borderwidth� Zheight�widthZWM_DELETE_WINDOWNz+%d+%d� � z<Return>)�Toplevel�__init__Z configureZ resizableZFALSE�titleZ transientZgrab_setZprotocol�cancel�parent�result�create_widgets�menu�set�pathZwithdrawZupdate_idletasksZgeometryZwinfo_rootxZwinfo_widthZwinfo_reqwidthZwinfo_rootyZwinfo_heightZwinfo_reqheightZ deiconifyZbind�okZwait_window)�selfr r ZmenuItemZfilePathZ_htest� r �A/opt/alt/python35/lib64/python3.5/idlelib/configHelpSourceEdit.pyr s. 0 zGetHelpSourceDialog.__init__c C sm t | � | _ t | � | _ t | � | _ t | d d d t �| _ | j j d t d t d t � t | j d t d t d d �} t | j d | j d d �| _ | j j � t | j d t d t d d �} t | j d | j d d �| _ | j j � | j d t d d d d � | j j d t d d d d � | j d t d d d d � | j j d t d d d d � t | j d d d d d | j �} | j d d � t | � } | j d t d t � t | d d d d d t d | j �| _ | j j d d d d d d d d � t | d d d d d | j �| _ | j j d d d d d d d d � d S)Nr r ZreliefZside�expandZfillZanchorZjustify�textz Menu Item:Ztextvariabler � z,Help File Path: Enter URL or browse for file�( Zpadxr Zpady� ZBrowse� ZcommandZOK�default�rowr �columnZCancel� )Z StringVarr r ZfontSizeZFrameZGROOVEZ frameMainZpackZTOPZTRUEZBOTHZLabel�WZLEFTZEntry� entryMenu� focus_set� entryPathZButton�browse_fileZBOTTOM�XZACTIVEr ZbuttonOkZgridr ZbuttonCancel)r Z labelMenuZ labelPathZbrowseButtonZframeButtonsr r r r / s<