SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib64 > python2.7 > idlelib > >


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python27/lib64/python2.7/idlelib//

NameTypeSizeLast ModifiedActions
Icons Directory - -
idle_test Directory - -
AutoComplete.py File 8964 bytes January 08 2025 10:43:10.
AutoComplete.pyc File 8181 bytes January 08 2025 10:43:10.
AutoComplete.pyo File 8181 bytes January 08 2025 10:43:10.
AutoCompleteWindow.py File 17318 bytes January 08 2025 10:43:09.
AutoCompleteWindow.pyc File 12714 bytes January 08 2025 10:43:10.
AutoCompleteWindow.pyo File 12655 bytes January 08 2025 10:43:11.
AutoExpand.py File 3395 bytes January 08 2025 10:43:10.
AutoExpand.pyc File 3580 bytes January 08 2025 10:43:11.
AutoExpand.pyo File 3580 bytes January 08 2025 10:43:11.
Bindings.py File 2976 bytes January 08 2025 10:43:09.
Bindings.pyc File 4708 bytes January 08 2025 10:43:09.
Bindings.pyo File 4708 bytes January 08 2025 10:43:09.
CREDITS.txt File 1866 bytes January 08 2025 10:43:11.
CallTipWindow.py File 6065 bytes January 08 2025 10:43:09.
CallTipWindow.pyc File 6292 bytes January 08 2025 10:43:09.
CallTipWindow.pyo File 6292 bytes January 08 2025 10:43:09.
CallTips.py File 7740 bytes January 08 2025 10:43:09.
CallTips.pyc File 8354 bytes January 08 2025 10:43:10.
CallTips.pyo File 8354 bytes January 08 2025 10:43:10.
ChangeLog File 56393 bytes January 08 2025 10:43:11.
ClassBrowser.py File 6999 bytes January 08 2025 10:43:11.
ClassBrowser.pyc File 9890 bytes January 08 2025 10:43:10.
ClassBrowser.pyo File 9890 bytes January 08 2025 10:43:10.
CodeContext.py File 8342 bytes January 08 2025 10:43:09.
CodeContext.pyc File 6788 bytes January 08 2025 10:43:11.
CodeContext.pyo File 6744 bytes January 08 2025 10:43:09.
ColorDelegator.py File 9762 bytes January 08 2025 10:43:09.
ColorDelegator.pyc File 9119 bytes January 08 2025 10:43:10.
ColorDelegator.pyo File 9119 bytes January 08 2025 10:43:10.
Debugger.py File 18236 bytes January 08 2025 10:43:10.
Debugger.pyc File 18144 bytes January 08 2025 10:43:10.
Debugger.pyo File 18144 bytes January 08 2025 10:43:10.
Delegator.py File 665 bytes January 08 2025 10:43:10.
Delegator.pyc File 1346 bytes January 08 2025 10:43:09.
Delegator.pyo File 1346 bytes January 08 2025 10:43:09.
EditorWindow.py File 65498 bytes January 08 2025 10:43:09.
EditorWindow.pyc File 58522 bytes January 08 2025 10:43:09.
EditorWindow.pyo File 58420 bytes January 08 2025 10:43:10.
FileList.py File 3718 bytes January 08 2025 10:43:10.
FileList.pyc File 4168 bytes January 08 2025 10:43:11.
FileList.pyo File 4135 bytes January 08 2025 10:43:10.
FormatParagraph.py File 7287 bytes January 08 2025 10:43:11.
FormatParagraph.pyc File 7311 bytes January 08 2025 10:43:09.
FormatParagraph.pyo File 7311 bytes January 08 2025 10:43:09.
GrepDialog.py File 5145 bytes January 08 2025 10:43:11.
GrepDialog.pyc File 6607 bytes January 08 2025 10:43:11.
GrepDialog.pyo File 6607 bytes January 08 2025 10:43:11.
HISTORY.txt File 10317 bytes January 08 2025 10:43:09.
HyperParser.py File 10497 bytes January 08 2025 10:43:09.
HyperParser.pyc File 6803 bytes January 08 2025 10:43:09.
HyperParser.pyo File 6803 bytes January 08 2025 10:43:09.
IOBinding.py File 21911 bytes January 08 2025 10:43:09.
IOBinding.pyc File 19068 bytes January 08 2025 10:43:11.
IOBinding.pyo File 19068 bytes January 08 2025 10:43:11.
IdleHistory.py File 4052 bytes January 08 2025 10:43:11.
IdleHistory.pyc File 4151 bytes January 08 2025 10:43:11.
IdleHistory.pyo File 4151 bytes January 08 2025 10:43:11.
MultiCall.py File 17701 bytes January 08 2025 10:43:10.
MultiCall.pyc File 16793 bytes January 08 2025 10:43:09.
MultiCall.pyo File 16719 bytes January 08 2025 10:43:09.
MultiStatusBar.py File 1348 bytes January 08 2025 10:43:09.
MultiStatusBar.pyc File 2357 bytes January 08 2025 10:43:11.
MultiStatusBar.pyo File 2357 bytes January 08 2025 10:43:11.
NEWS.txt File 47247 bytes January 08 2025 10:43:10.
ObjectBrowser.py File 4376 bytes January 08 2025 10:43:10.
ObjectBrowser.pyc File 7431 bytes January 08 2025 10:43:10.
ObjectBrowser.pyo File 7431 bytes January 08 2025 10:43:10.
OutputWindow.py File 4576 bytes January 08 2025 10:43:11.
OutputWindow.pyc File 5427 bytes January 08 2025 10:43:10.
OutputWindow.pyo File 5427 bytes January 08 2025 10:43:10.
ParenMatch.py File 6714 bytes January 08 2025 10:43:10.
ParenMatch.pyc File 7350 bytes January 08 2025 10:43:11.
ParenMatch.pyo File 7350 bytes January 08 2025 10:43:11.
PathBrowser.py File 3009 bytes January 08 2025 10:43:09.
PathBrowser.pyc File 4681 bytes January 08 2025 10:43:11.
PathBrowser.pyo File 4681 bytes January 08 2025 10:43:11.
Percolator.py File 3222 bytes January 08 2025 10:43:11.
Percolator.pyc File 4803 bytes January 08 2025 10:43:11.
Percolator.pyo File 4619 bytes January 08 2025 10:43:09.
PyParse.py File 19510 bytes January 08 2025 10:43:10.
PyParse.pyc File 10226 bytes January 08 2025 10:43:09.
PyParse.pyo File 9788 bytes January 08 2025 10:43:10.
PyShell.py File 58872 bytes January 08 2025 10:43:09.
PyShell.pyc File 54269 bytes January 08 2025 10:43:10.
PyShell.pyo File 54167 bytes January 08 2025 10:43:10.
README.txt File 7890 bytes January 08 2025 10:43:10.
RemoteDebugger.py File 11632 bytes January 08 2025 10:43:09.
RemoteDebugger.pyc File 17131 bytes January 08 2025 10:43:10.
RemoteDebugger.pyo File 16977 bytes January 08 2025 10:43:09.
RemoteObjectBrowser.py File 942 bytes January 08 2025 10:43:09.
RemoteObjectBrowser.pyc File 2280 bytes January 08 2025 10:43:10.
RemoteObjectBrowser.pyo File 2280 bytes January 08 2025 10:43:10.
ReplaceDialog.py File 6639 bytes January 08 2025 10:43:10.
ReplaceDialog.pyc File 8016 bytes January 08 2025 10:43:09.
ReplaceDialog.pyo File 8016 bytes January 08 2025 10:43:09.
RstripExtension.py File 1050 bytes January 08 2025 10:43:10.
RstripExtension.pyc File 1665 bytes January 08 2025 10:43:10.
RstripExtension.pyo File 1665 bytes January 08 2025 10:43:10.
ScriptBinding.py File 8459 bytes January 08 2025 10:43:10.
ScriptBinding.pyc File 8370 bytes January 08 2025 10:43:09.
ScriptBinding.pyo File 8370 bytes January 08 2025 10:43:09.
ScrolledList.py File 4373 bytes January 08 2025 10:43:10.
ScrolledList.pyc File 6768 bytes January 08 2025 10:43:09.
ScrolledList.pyo File 6768 bytes January 08 2025 10:43:09.
SearchDialog.py File 2630 bytes January 08 2025 10:43:09.
SearchDialog.pyc File 4139 bytes January 08 2025 10:43:09.
SearchDialog.pyo File 4139 bytes January 08 2025 10:43:09.
SearchDialogBase.py File 7094 bytes January 08 2025 10:43:10.
SearchDialogBase.pyc File 8631 bytes January 08 2025 10:43:11.
SearchDialogBase.pyo File 8631 bytes January 08 2025 10:43:11.
SearchEngine.py File 7463 bytes January 08 2025 10:43:11.
SearchEngine.pyc File 8575 bytes January 08 2025 10:43:10.
SearchEngine.pyo File 8575 bytes January 08 2025 10:43:10.
StackViewer.py File 4431 bytes January 08 2025 10:43:11.
StackViewer.pyc File 6677 bytes January 08 2025 10:43:09.
StackViewer.pyo File 6677 bytes January 08 2025 10:43:09.
TODO.txt File 8478 bytes January 08 2025 10:43:09.
ToolTip.py File 3173 bytes January 08 2025 10:43:11.
ToolTip.pyc File 4890 bytes January 08 2025 10:43:10.
ToolTip.pyo File 4890 bytes January 08 2025 10:43:10.
TreeWidget.py File 15037 bytes January 08 2025 10:43:09.
TreeWidget.pyc File 18383 bytes January 08 2025 10:43:10.
TreeWidget.pyo File 18383 bytes January 08 2025 10:43:10.
UndoDelegator.py File 10787 bytes January 08 2025 10:43:09.
UndoDelegator.pyc File 14218 bytes January 08 2025 10:43:09.
UndoDelegator.pyo File 14218 bytes January 08 2025 10:43:09.
WidgetRedirector.py File 6906 bytes January 08 2025 10:43:09.
WidgetRedirector.pyc File 7951 bytes January 08 2025 10:43:11.
WidgetRedirector.pyo File 7951 bytes January 08 2025 10:43:11.
WindowList.py File 2473 bytes January 08 2025 10:43:09.
WindowList.pyc File 3831 bytes January 08 2025 10:43:10.
WindowList.pyo File 3831 bytes January 08 2025 10:43:10.
ZoomHeight.py File 1300 bytes January 08 2025 10:43:11.
ZoomHeight.pyc File 1711 bytes January 08 2025 10:43:09.
ZoomHeight.pyo File 1711 bytes January 08 2025 10:43:09.
__init__.py File 288 bytes January 08 2025 10:43:09.
__init__.pyc File 444 bytes January 08 2025 10:43:11.
__init__.pyo File 444 bytes January 08 2025 10:43:11.
aboutDialog.py File 7014 bytes January 08 2025 10:43:09.
aboutDialog.pyc File 7017 bytes January 08 2025 10:43:09.
aboutDialog.pyo File 7017 bytes January 08 2025 10:43:09.
config-extensions.def File 2965 bytes January 08 2025 10:43:10.
config-highlight.def File 2515 bytes January 08 2025 10:43:11.
config-keys.def File 7777 bytes January 08 2025 10:43:10.
config-main.def File 2561 bytes January 08 2025 10:43:09.
configDialog.py File 65958 bytes January 08 2025 10:43:09.
configDialog.pyc File 54435 bytes January 08 2025 10:43:11.
configDialog.pyo File 54435 bytes January 08 2025 10:43:11.
configHandler.py File 32485 bytes January 08 2025 10:43:10.
configHandler.pyc File 29985 bytes January 08 2025 10:43:11.
configHandler.pyo File 29985 bytes January 08 2025 10:43:11.
configHelpSourceEdit.py File 6686 bytes January 08 2025 10:43:10.
configHelpSourceEdit.pyc File 6712 bytes January 08 2025 10:43:10.
configHelpSourceEdit.pyo File 6712 bytes January 08 2025 10:43:10.
configSectionNameDialog.py File 4040 bytes January 08 2025 10:43:09.
configSectionNameDialog.pyc File 4510 bytes January 08 2025 10:43:11.
configSectionNameDialog.pyo File 4510 bytes January 08 2025 10:43:11.
dynOptionMenuWidget.py File 1984 bytes January 08 2025 10:43:09.
dynOptionMenuWidget.pyc File 2868 bytes January 08 2025 10:43:09.
dynOptionMenuWidget.pyo File 2868 bytes January 08 2025 10:43:09.
extend.txt File 3642 bytes January 08 2025 10:43:11.
help.html File 42414 bytes January 08 2025 10:43:10.
help.py File 11035 bytes January 08 2025 10:43:10.
help.pyc File 12543 bytes January 08 2025 10:43:09.
help.pyo File 12543 bytes January 08 2025 10:43:09.
help.txt File 12144 bytes January 08 2025 10:43:09.
idle.py File 453 bytes January 08 2025 10:43:09.
idle.pyc File 423 bytes January 08 2025 10:43:09.
idle.pyo File 423 bytes January 08 2025 10:43:09.
idle.pyw File 563 bytes January 08 2025 10:43:10.
idlever.py File 415 bytes January 08 2025 10:43:10.
idlever.pyc File 591 bytes January 08 2025 10:43:10.
idlever.pyo File 591 bytes January 08 2025 10:43:10.
keybindingDialog.py File 12468 bytes January 08 2025 10:43:09.
keybindingDialog.pyc File 12368 bytes January 08 2025 10:43:10.
keybindingDialog.pyo File 12368 bytes January 08 2025 10:43:10.
macosxSupport.py File 8435 bytes January 08 2025 10:43:09.
macosxSupport.pyc File 8585 bytes January 08 2025 10:43:10.
macosxSupport.pyo File 8447 bytes January 08 2025 10:43:09.
rpc.py File 20150 bytes January 08 2025 10:43:10.
rpc.pyc File 22495 bytes January 08 2025 10:43:10.
rpc.pyo File 22389 bytes January 08 2025 10:43:09.
run.py File 12917 bytes January 08 2025 10:43:10.
run.pyc File 13770 bytes January 08 2025 10:43:11.
run.pyo File 13712 bytes January 08 2025 10:43:09.
tabbedpages.py File 18439 bytes January 08 2025 10:43:09.
tabbedpages.pyc File 19081 bytes January 08 2025 10:43:11.
tabbedpages.pyo File 19081 bytes January 08 2025 10:43:11.
textView.py File 3520 bytes January 08 2025 10:43:09.
textView.pyc File 4116 bytes January 08 2025 10:43:10.
textView.pyo File 4116 bytes January 08 2025 10:43:10.

Reading File: //opt/alt/python27/lib64/python2.7/idlelib///macosxSupport.py

"""
A number of functions that enhance IDLE on Mac OSX.
"""
import sys
import Tkinter
from os import path


import warnings

def runningAsOSXApp():
    warnings.warn("runningAsOSXApp() is deprecated, use isAquaTk()",
                        DeprecationWarning, stacklevel=2)
    return isAquaTk()

def isCarbonAquaTk(root):
    warnings.warn("isCarbonAquaTk(root) is deprecated, use isCarbonTk()",
                        DeprecationWarning, stacklevel=2)
    return isCarbonTk()

_tk_type = None

def _initializeTkVariantTests(root):
    """
    Initializes OS X Tk variant values for
    isAquaTk(), isCarbonTk(), isCocoaTk(), and isXQuartz().
    """
    global _tk_type
    if sys.platform == 'darwin':
        ws = root.tk.call('tk', 'windowingsystem')
        if 'x11' in ws:
            _tk_type = "xquartz"
        elif 'aqua' not in ws:
            _tk_type = "other"
        elif 'AppKit' in root.tk.call('winfo', 'server', '.'):
            _tk_type = "cocoa"
        else:
            _tk_type = "carbon"
    else:
        _tk_type = "other"

def isAquaTk():
    """
    Returns True if IDLE is using a native OS X Tk (Cocoa or Carbon).
    """
    assert _tk_type is not None
    return _tk_type == "cocoa" or _tk_type == "carbon"

def isCarbonTk():
    """
    Returns True if IDLE is using a Carbon Aqua Tk (instead of the
    newer Cocoa Aqua Tk).
    """
    assert _tk_type is not None
    return _tk_type == "carbon"

def isCocoaTk():
    """
    Returns True if IDLE is using a Cocoa Aqua Tk.
    """
    assert _tk_type is not None
    return _tk_type == "cocoa"

def isXQuartz():
    """
    Returns True if IDLE is using an OS X X11 Tk.
    """
    assert _tk_type is not None
    return _tk_type == "xquartz"

def tkVersionWarning(root):
    """
    Returns a string warning message if the Tk version in use appears to
    be one known to cause problems with IDLE.
    1. Apple Cocoa-based Tk 8.5.7 shipped with Mac OS X 10.6 is unusable.
    2. Apple Cocoa-based Tk 8.5.9 in OS X 10.7 and 10.8 is better but
        can still crash unexpectedly.
    """

    if isCocoaTk():
        patchlevel = root.tk.call('info', 'patchlevel')
        if patchlevel not in ('8.5.7', '8.5.9'):
            return False
        return (r"WARNING: The version of Tcl/Tk ({0}) in use may"
                r" be unstable.\n"
                r"Visit http://www.python.org/download/mac/tcltk/"
                r" for current information.".format(patchlevel))
    else:
        return False

def addOpenEventSupport(root, flist):
    """
    This ensures that the application will respond to open AppleEvents, which
    makes is feasible to use IDLE as the default application for python files.
    """
    def doOpenFile(*args):
        for fn in args:
            flist.open(fn)

    # The command below is a hook in aquatk that is called whenever the app
    # receives a file open event. The callback can have multiple arguments,
    # one for every file that should be opened.
    root.createcommand("::tk::mac::OpenDocument", doOpenFile)

def hideTkConsole(root):
    try:
        root.tk.call('console', 'hide')
    except Tkinter.TclError:
        # Some versions of the Tk framework don't have a console object
        pass

def overrideRootMenu(root, flist):
    """
    Replace the Tk root menu by something that is more appropriate for
    IDLE with an Aqua Tk.
    """
    # The menu that is attached to the Tk root (".") is also used by AquaTk for
    # all windows that don't specify a menu of their own. The default menubar
    # contains a number of menus, none of which are appropriate for IDLE. The
    # Most annoying of those is an 'About Tck/Tk...' menu in the application
    # menu.
    #
    # This function replaces the default menubar by a mostly empty one, it
    # should only contain the correct application menu and the window menu.
    #
    # Due to a (mis-)feature of TkAqua the user will also see an empty Help
    # menu.
    from Tkinter import Menu
    from idlelib import Bindings
    from idlelib import WindowList

    closeItem = Bindings.menudefs[0][1][-2]

    # Remove the last 3 items of the file menu: a separator, close window and
    # quit. Close window will be reinserted just above the save item, where
    # it should be according to the HIG. Quit is in the application menu.
    del Bindings.menudefs[0][1][-3:]
    Bindings.menudefs[0][1].insert(6, closeItem)

    # Remove the 'About' entry from the help menu, it is in the application
    # menu
    del Bindings.menudefs[-1][1][0:2]
    # Remove the 'Configure Idle' entry from the options menu, it is in the
    # application menu as 'Preferences'
    del Bindings.menudefs[-2][1][0]
    menubar = Menu(root)
    root.configure(menu=menubar)
    menudict = {}

    menudict['windows'] = menu = Menu(menubar, name='windows', tearoff=0)
    menubar.add_cascade(label='Window', menu=menu, underline=0)

    def postwindowsmenu(menu=menu):
        end = menu.index('end')
        if end is None:
            end = -1

        if end > 0:
            menu.delete(0, end)
        WindowList.add_windows_to_menu(menu)
    WindowList.register_callback(postwindowsmenu)

    def about_dialog(event=None):
        "Handle Help 'About IDLE' event."
        # Synchronize with EditorWindow.EditorWindow.about_dialog.
        from idlelib import aboutDialog
        aboutDialog.AboutDialog(root, 'About IDLE')

    def config_dialog(event=None):
        "Handle Options 'Configure IDLE' event."
        # Synchronize with EditorWindow.EditorWindow.config_dialog.
        from idlelib import configDialog
        root.instance_dict = flist.inversedict
        configDialog.ConfigDialog(root, 'Settings')

    def help_dialog(event=None):
        "Handle Help 'IDLE Help' event."
        # Synchronize with EditorWindow.EditorWindow.help_dialog.
        from idlelib import help
        help.show_idlehelp(root)

    root.bind('<<about-idle>>', about_dialog)
    root.bind('<<open-config-dialog>>', config_dialog)
    root.createcommand('::tk::mac::ShowPreferences', config_dialog)
    if flist:
        root.bind('<<close-all-windows>>', flist.close_all_callback)

        # The binding above doesn't reliably work on all versions of Tk
        # on MacOSX. Adding command definition below does seem to do the
        # right thing for now.
        root.createcommand('exit', flist.close_all_callback)

    if isCarbonTk():
        # for Carbon AquaTk, replace the default Tk apple menu
        menudict['application'] = menu = Menu(menubar, name='apple',
                                              tearoff=0)
        menubar.add_cascade(label='IDLE', menu=menu)
        Bindings.menudefs.insert(0,
            ('application', [
                ('About IDLE', '<<about-idle>>'),
                    None,
                ]))
        tkversion = root.tk.eval('info patchlevel')
        if tuple(map(int, tkversion.split('.'))) < (8, 4, 14):
            # for earlier AquaTk versions, supply a Preferences menu item
            Bindings.menudefs[0][1].append(
                    ('_Preferences....', '<<open-config-dialog>>'),
                )
    if isCocoaTk():
        # replace default About dialog with About IDLE one
        root.createcommand('tkAboutDialog', about_dialog)
        # replace default "Help" item in Help menu
        root.createcommand('::tk::mac::ShowHelp', help_dialog)
        # remove redundant "IDLE Help" from menu
        del Bindings.menudefs[-1][1][0]

def setupApp(root, flist):
    """
    Perform initial OS X customizations if needed.
    Called from PyShell.main() after initial calls to Tk()

    There are currently three major versions of Tk in use on OS X:
        1. Aqua Cocoa Tk (native default since OS X 10.6)
        2. Aqua Carbon Tk (original native, 32-bit only, deprecated)
        3. X11 (supported by some third-party distributors, deprecated)
    There are various differences among the three that affect IDLE
    behavior, primarily with menus, mouse key events, and accelerators.
    Some one-time customizations are performed here.
    Others are dynamically tested throughout idlelib by calls to the
    isAquaTk(), isCarbonTk(), isCocoaTk(), isXQuartz() functions which
    are initialized here as well.
    """
    _initializeTkVariantTests(root)
    if isAquaTk():
        hideTkConsole(root)
        overrideRootMenu(root, flist)
        addOpenEventSupport(root, flist)

SILENT KILLER Tool