Hacked By AnonymousFox
��Yf} � @ s� d Z d d l Z d d l Z d d l Z d d l j Z d d l m Z d d l m
Z
d d l m Z d Z Gd d � d � Z
d S) a? 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)�PyShell)�idleConf)�
macosxSupporta/ Error: Inconsistent indentation detected!
1) Your indentation is outright incorrect (easy to fix), OR
2) Your indentation mixes tabs and spaces.
To fix case 2, change all tabs to spaces by using Edit->Select All followed by Format->Untabify Region and specify the number of columns used by each tab.
c @ s� e Z d Z d d d d g f g Z d d � Z d d
� Z d d � Z d
d � Z d d � Z d d � Z d d � Z
d d � Z d d � Z d S)�
ScriptBindingZrunN�Check Module�<<check-module>>�
Run Module�<<run-module>>c C sP | | _ | j j | _ | j j | _ t j � rL | j j j d | j � d S)Nz<<run-module-event-2>>)�editwin�flist�rootr � isCocoaTk�
text_frameZbind�_run_module_event)�selfr
� r �:/opt/alt/python35/lib64/python3.5/idlelib/ScriptBinding.py�__init__/ s
zScriptBinding.__init__c C s@ | j � } | s d S| j | � s) d S| j | � s<