Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
idlelib
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/idlelib/CallTipWindow.pyc
mò ‚=5Dc @ sX d Z d k Td f d „ ƒ YZ d f d „ ƒ YZ d „ Z e d j o e ƒ n d S( s† A CallTip window class for Tkinter/IDLE. After ToolTip.py, which uses ideas gleaned from PySol Used by the CallTips IDLE extension. ( t *t CallTipc B s# t Z d „ Z d „ Z d „ Z RS( Nc C s/ | | _ d | _ d | _ d | _ | _ d S( Ni ( t widgett selft Nonet tipwindowt idt xt y( R R ( ( t+ /usr/lib/python2.4/idlelib/CallTipWindow.pyt __init__ s c C sb t | ƒ d j o | d d } n | | _ | i p | i o d Sn | i i d ƒ | i i d ƒ \ } } } } | | i i ƒ d } | | | i i ƒ } t | i ƒ | _ } | i d ƒ | i d | | f ƒ y# | i i d d | i d d ƒ Wn t j o n Xt | d | i d t d d d t d d d | i d ƒ} | i ƒ d S( s Display text in calltip windowiO iK s ...Nt inserti i s +%d+%ds! ::tk::unsupported::MacWindowStylet stylet helpt noActivatest textt justifyt backgrounds #ffffe0t relieft borderwidtht font( t lenR R R R t seet bboxR R t cxt cyt winfo_rootxt winfo_rootyt Toplevelt twt wm_overrideredirectt wm_geometryt tkt callt _wt TclErrort Labelt LEFTt SOLIDt labelt pack( R R R' R R R R R ( ( R t showtip s, c C s+ | i } d | _ | o | i ƒ n d S( N( R R R R t destroy( R R ( ( R t hidetip1 s ( t __name__t __module__R R) R+ ( ( ( R R s t containerc B s# t Z d „ Z d „ Z d „ Z RS( Nc C s¿ t ƒ } t | ƒ } | _ | i d t d t d d ƒ | i d d ƒ | i ƒ t | ƒ | _ | i d d ƒ | i d d ƒ | i d | i ƒ | i d | i ƒ | i ƒ | i ƒ d S( Nt sidet fillt expandi R s string.splits <<calltip-show>>t (s <<calltip-hide>>t )( t Tkt roott TextR R R( R% t BOTHR t updateR t calltipt event_addt bindt calltip_showt calltip_hidet focus_sett mainloop( R R R5 ( ( R R = s c C s | i i d ƒ d S( Ns Hello world( R R9 R) ( R t event( ( R R<