|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21571/root/usr/lib64/python2.4/idlelib/ |
Upload File : |
mō
=5Dc @ sC d Z d k l Z d k l Z d k Z d e f d YZ d S( sd
OptionMenu widget modified to allow dynamic menu reconfiguration
and setting of highlightthickness
( s
OptionMenu( s _setitNt
DynOptionMenuc B s# t Z d Z d Z e d Z RS( sF
unlike OptionMenu, our kwargs can include highlightthickness
c O s t i | } d | i j o | d =n t i | | | | | | | i d | i d | | _ | i d | _
d S( Nt highlightthicknesst command( t copyt kwargst
kwargsCopyt keyst
OptionMenut __init__t selft mastert variablet valuet valuest configt getR ( R R
R R R
R R ( ( t3 /usr/lib64/python2.4/idlelib/dynOptionMenuWidget.pyR
s c C sp | d i d d x: | D]2 } | d i d | d t | i | | i q W| o | i i | 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(
R t deletet valueListt itemt add_commandt _setitR R R t set( R R R R ( ( R t SetMenu s ( t __name__t
__module__t __doc__R t NoneR ( ( ( R R s ( R t TkinterR R R R ( R R R R ( ( R t ? s