SILENT KILLERPanel

Current Path: > > opt > alt > python33 > lib64 > python3.3 > > > 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/python33/lib64/python3.3///idlelib

NameTypeSizeLast ModifiedActions
Icons Directory - -
__pycache__ Directory - -
idle_test Directory - -
AutoComplete.py File 9082 bytes April 17 2024 16:58:17.
AutoCompleteWindow.py File 17672 bytes April 17 2024 16:58:17.
AutoExpand.py File 2483 bytes April 17 2024 16:58:17.
Bindings.py File 3434 bytes April 17 2024 16:58:17.
CREDITS.txt File 1865 bytes September 19 2017 07:32:02.
CallTipWindow.py File 5899 bytes April 17 2024 16:58:17.
CallTips.py File 5932 bytes April 17 2024 16:58:17.
ChangeLog File 56393 bytes September 19 2017 07:32:02.
ClassBrowser.py File 6371 bytes April 17 2024 16:58:17.
CodeContext.py File 8353 bytes April 17 2024 16:58:17.
ColorDelegator.py File 10467 bytes April 17 2024 16:58:17.
Debugger.py File 16367 bytes April 17 2024 16:58:17.
Delegator.py File 665 bytes April 17 2024 16:58:17.
EditorWindow.py File 66307 bytes April 17 2024 16:58:17.
FileList.py File 3814 bytes April 17 2024 16:58:17.
FormatParagraph.py File 7166 bytes April 17 2024 16:58:17.
GrepDialog.py File 4111 bytes April 17 2024 16:58:17.
HISTORY.txt File 10317 bytes September 19 2017 07:32:02.
HyperParser.py File 10562 bytes April 17 2024 16:58:17.
IOBinding.py File 19862 bytes April 17 2024 16:58:17.
IdleHistory.py File 4117 bytes April 17 2024 16:58:17.
MultiCall.py File 17529 bytes April 17 2024 16:58:17.
MultiStatusBar.py File 783 bytes April 17 2024 16:58:17.
NEWS.txt File 34417 bytes September 19 2017 07:32:02.
ObjectBrowser.py File 3749 bytes April 17 2024 16:58:17.
OutputWindow.py File 4394 bytes April 17 2024 16:58:17.
ParenMatch.py File 6627 bytes April 17 2024 16:58:17.
PathBrowser.py File 2878 bytes April 17 2024 16:58:17.
Percolator.py File 2658 bytes April 17 2024 16:58:17.
PyParse.py File 19414 bytes April 17 2024 16:58:17.
PyShell.py File 57877 bytes April 17 2024 16:58:17.
README.txt File 2502 bytes September 19 2017 07:32:02.
RemoteDebugger.py File 12029 bytes April 17 2024 16:58:17.
RemoteObjectBrowser.py File 964 bytes April 17 2024 16:58:17.
ReplaceDialog.py File 5829 bytes April 17 2024 16:58:17.
RstripExtension.py File 1050 bytes April 17 2024 16:58:17.
ScriptBinding.py File 8069 bytes April 17 2024 16:58:17.
ScrolledList.py File 3997 bytes April 17 2024 16:58:17.
SearchDialog.py File 2016 bytes April 17 2024 16:58:17.
SearchDialogBase.py File 5185 bytes April 17 2024 16:58:17.
SearchEngine.py File 7544 bytes April 17 2024 16:58:17.
StackViewer.py File 3567 bytes April 17 2024 16:58:17.
TODO.txt File 8478 bytes September 19 2017 07:32:02.
ToolTip.py File 2736 bytes April 17 2024 16:58:17.
TreeWidget.py File 15220 bytes April 17 2024 16:58:17.
UndoDelegator.py File 10305 bytes April 17 2024 16:58:17.
WidgetRedirector.py File 4477 bytes April 17 2024 16:58:17.
WindowList.py File 2472 bytes April 17 2024 16:58:17.
ZoomHeight.py File 1307 bytes April 17 2024 16:58:17.
__init__.py File 37 bytes April 17 2024 16:58:17.
__main__.py File 109 bytes April 17 2024 16:58:17.
aboutDialog.py File 6575 bytes April 17 2024 16:58:17.
config-extensions.def File 2788 bytes September 19 2017 07:32:02.
config-highlight.def File 1740 bytes September 19 2017 07:32:02.
config-keys.def File 7524 bytes September 19 2017 07:32:02.
config-main.def File 2514 bytes September 19 2017 07:32:02.
configDialog.py File 52850 bytes April 17 2024 16:58:17.
configHandler.py File 29323 bytes April 17 2024 16:58:17.
configHelpSourceEdit.py File 6725 bytes April 17 2024 16:58:17.
configSectionNameDialog.py File 4314 bytes April 17 2024 16:58:17.
dynOptionMenuWidget.py File 1308 bytes April 17 2024 16:58:17.
extend.txt File 3642 bytes September 19 2017 07:32:02.
help.txt File 11994 bytes September 19 2017 07:32:02.
idle.py File 400 bytes April 17 2024 16:58:17.
idle.pyw File 671 bytes September 19 2017 07:32:02.
idlever.py File 23 bytes April 17 2024 16:58:17.
keybindingDialog.py File 12427 bytes April 17 2024 16:58:17.
macosxSupport.py File 7172 bytes April 17 2024 16:58:17.
rpc.py File 20953 bytes April 17 2024 16:58:17.
run.py File 13694 bytes April 17 2024 16:58:17.
tabbedpages.py File 18167 bytes April 17 2024 16:58:17.
textView.py File 3545 bytes April 17 2024 16:58:17.

Reading File: //opt/alt/python33/lib64/python3.3///idlelib/SearchDialogBase.py

'''Define SearchDialogBase used by Search, Replace, and Grep dialogs.'''
from tkinter import *

class SearchDialogBase:
    '''Create most of a modal search dialog (make_frame, create_widgets).

    The wide left column contains:
    1 or 2 text entry lines (create_entries, make_entry);
    a row of standard radiobuttons (create_option_buttons);
    a row of dialog specific radiobuttons (create_other_buttons).

    The narrow right column contains command buttons
    (create_command_buttons, make_button).
    These are bound to functions that execute the command.

    Except for command buttons, this base class is not limited to
    items common to all three subclasses.  Rather, it is the Find dialog
    minus the "Find Next" command and its execution function.
    The other dialogs override methods to replace and add widgets.
    '''

    title = "Search Dialog"
    icon = "Search"
    needwrapbutton = 1

    def __init__(self, root, engine):
        self.root = root
        self.engine = engine
        self.top = None

    def open(self, text, searchphrase=None):
        self.text = text
        if not self.top:
            self.create_widgets()
        else:
            self.top.deiconify()
            self.top.tkraise()
        if searchphrase:
            self.ent.delete(0,"end")
            self.ent.insert("end",searchphrase)
        self.ent.focus_set()
        self.ent.selection_range(0, "end")
        self.ent.icursor(0)
        self.top.grab_set()

    def close(self, event=None):
        if self.top:
            self.top.grab_release()
            self.top.withdraw()

    def create_widgets(self):
        top = Toplevel(self.root)
        top.bind("<Return>", self.default_command)
        top.bind("<Escape>", self.close)
        top.protocol("WM_DELETE_WINDOW", self.close)
        top.wm_title(self.title)
        top.wm_iconname(self.icon)
        self.top = top

        self.row = 0
        self.top.grid_columnconfigure(0, pad=2, weight=0)
        self.top.grid_columnconfigure(1, pad=2, minsize=100, weight=100)

        self.create_entries()
        self.create_option_buttons()
        self.create_other_buttons()
        return self.create_command_buttons()

    def make_entry(self, label, var):
        l = Label(self.top, text=label)
        l.grid(row=self.row, column=0, sticky="nw")
        e = Entry(self.top, textvariable=var, exportselection=0)
        e.grid(row=self.row, column=1, sticky="nwe")
        self.row = self.row + 1
        return e

    def make_frame(self,labeltext=None):
        if labeltext:
            l = Label(self.top, text=labeltext)
            l.grid(row=self.row, column=0, sticky="nw")
        f = Frame(self.top)
        f.grid(row=self.row, column=1, columnspan=1, sticky="nwe")
        self.row = self.row + 1
        return f

    def make_button(self, label, command, isdef=0):
        b = Button(self.buttonframe,
                   text=label, command=command,
                   default=isdef and "active" or "normal")
        cols,rows=self.buttonframe.grid_size()
        b.grid(pady=1,row=rows,column=0,sticky="ew")
        self.buttonframe.grid(rowspan=rows+1)
        return b

    def create_entries(self):
        self.ent = self.make_entry("Find:", self.engine.patvar)

    def create_option_buttons(self):
        f = self.make_frame("Options")

        btn = Checkbutton(f, anchor="w",
                variable=self.engine.revar,
                text="Regular expression")
        btn.pack(side="left", fill="both")
        if self.engine.isre():
            btn.select()

        btn = Checkbutton(f, anchor="w",
                variable=self.engine.casevar,
                text="Match case")
        btn.pack(side="left", fill="both")
        if self.engine.iscase():
            btn.select()

        btn = Checkbutton(f, anchor="w",
                variable=self.engine.wordvar,
                text="Whole word")
        btn.pack(side="left", fill="both")
        if self.engine.isword():
            btn.select()

        if self.needwrapbutton:
            btn = Checkbutton(f, anchor="w",
                    variable=self.engine.wrapvar,
                    text="Wrap around")
            btn.pack(side="left", fill="both")
            if self.engine.iswrap():
                btn.select()

    def create_other_buttons(self):
        f = self.make_frame("Direction")

        #lbl = Label(f, text="Direction: ")
        #lbl.pack(side="left")

        btn = Radiobutton(f, anchor="w",
                variable=self.engine.backvar, value=1,
                text="Up")
        btn.pack(side="left", fill="both")
        if self.engine.isback():
            btn.select()

        btn = Radiobutton(f, anchor="w",
                variable=self.engine.backvar, value=0,
                text="Down")
        btn.pack(side="left", fill="both")
        if not self.engine.isback():
            btn.select()

    def create_command_buttons(self):
        #
        # place button frame on the right
        f = self.buttonframe = Frame(self.top)
        f.grid(row=0,column=2,padx=2,pady=2,ipadx=2,ipady=2)

        b = self.make_button("close", self.close)
        b.lower()

SILENT KILLER Tool