Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
idlelib
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/idlelib/ScriptBinding.pyo
mò ‚=5Dc @ sƒ d Z d k Z d k Z d k Z d k Z d k Z d k Z d k Z d k l Z e i e i d Z d Z d f d „ ƒ YZ d S( s? Extension to execute code outside the Python shell window. This adds the following commands: - Check module does a full syntax check of the current module. It also runs the tabnanny to catch any inconsistent tabs. - Run module executes the module's code in the __main__ namespace. The window must have been saved previously. The module is added to sys.modules, and is also added to the __main__ namespace. XXX GvR Redesign this interface (yet again) as follows: - Present a dialog box for ``Run Module'' - Allow specify command line arguments in the dialog box N( s idleConft _sV Error: Inconsistent indentation detected! This means that either: 1) your indentation is outright incorrect (easy to fix), or 2) your indentation mixes tabs and spaces in a way that depends on how many spaces a tab is worth. To fix case 2, change all tabs to spaces by using Select All followed by Untabify Region (both in the Edit menu).t ScriptBindingc B sq t Z d d d d g f g Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nt runs Check Modules <<check-module>>s Run Modules <<run-module>>c C s+ | | _ | i i | _ | i i | _ d S( N( t editwint selft flistt root( R R ( ( t+ /usr/lib/python2.4/idlelib/ScriptBinding.pyt __init__4 s c C sD | i ƒ } | p d Sn | i | ƒ p d Sn | i | ƒ d S( N( R t getfilenamet filenamet tabnannyt checksyntax( R t eventR ( ( R t check_module_event; s c C sÆ t | d ƒ } y t i t i | i ƒ ƒ Wn“ t i j oC } | \ } \ } } | i i | ƒ | i d d | ƒ t SnC t i j o3 } | i i | i ƒ ƒ | i d t ƒ t Sn Xt S( Nt rs Tabnanny Tokenizing Errors Token Error: %ss Tab/space error( t openR t fR t process_tokenst tokenizet generate_tokenst readlinet TokenErrort msgt msgtxtt linenot startR R t gotolinet errorboxt Falset NannyNagt nagt get_linenot indent_messaget True( R R R R R R R R ( ( R R C s c C s² | i i ƒ | _ } | i ƒ } | i | i ƒ t | d ƒ } | i ƒ } | i ƒ d | j o. t i d d | ƒ } t i d d | ƒ } n | o | d d j o | d } n | i i } | i d d d ƒ zÆ y t | | d ƒ SWn« t t f j o™ } y^ | \ } \ } } } } | p( | | | | | f f | _ | | _ n | i | | | ƒ Wn d t | ƒ } n X| i d d | ƒ t Sn XWd | i | ƒ Xd S( NR s s \r\ns s \riÿÿÿÿt ERRORs 1.0t endt execs *** s Syntax errors"