|
Server : Apache System : Linux iZ6xhqomji47p1Z 5.10.134-15.al8.x86_64 #1 SMP Thu Jul 20 00:44:04 CST 2023 x86_64 User : www ( 1000) PHP Version : 8.1.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /lib64/python2.7/idlelib/ |
�
�_c @ s� d Z d d l Z d d l m Z m Z m Z m Z d e f d � � YZ d � Z e d k r| d d l
m Z e e � n d S( sd
OptionMenu widget modified to allow dynamic menu reconfiguration
and setting of highlightthickness
i����N( t
OptionMenut _setitt StringVart Buttont
DynOptionMenuc B s# e Z d Z d � Z d d � Z RS( sF
unlike OptionMenu, our kwargs can include highlightthickness
c O s t j | � } d | j � k r+ | d =n t j | | | | | | � | j d | j d � � | | _ | j d � | _ d S( Nt highlightthicknesst command( t copyt keysR t __init__t configt gett variableR ( t selft masterR t valuet valuest kwargst
kwargsCopy( ( s3 /usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyR s
c C sn | d j d d � x: | D]2 } | d j d | d t | j | | j � � q W| rj | j j | � n d S( s�
clear and reload the menu with a new set of options.
valueList - list of new options
value - initial value to set the optionmenu's menubutton to
t menui t endt labelR N( t deletet add_commandR R R t set( R
t valueListR t item( ( s3 /usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt SetMenu s
N( t __name__t
__module__t __doc__R t NoneR ( ( ( s3 /usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyR s c s� d d l m } | � } | j d � | j d | j � d | j � d f � | j � t | � } | j d � t | | d d d
d � � � j
� � f d � } t | d
d d | �} | j
� d S( Ni����( t Toplevels Tets dynamic option menus
200x100+%d+%di� i� s Old option sett old1t old2t old3t old4c s# � j d d d d g d d �d S( Nt new1t new2t new3t new4R s new option set( R ( ( t dyn( s3 /usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt update2 s t texts Change option setR ( t TkinterR t titlet geometryt winfo_rootxt winfo_rootyt focus_setR R R t packR ( t parentR t topt varR* t button( ( R) s3 /usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt _dyn_option_menu$ s
t __main__( t run( R R R, R R R R R R7 R t idlelib.idle_test.htestR9 ( ( ( s3 /usr/lib64/python2.7/idlelib/dynOptionMenuWidget.pyt <module> s "