GRAYBYTE WORDPRESS FILE MANAGER3274

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python34/lib64/python3.4/idlelib/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python34/lib64/python3.4/idlelib//configSectionNameDialog.py
"""
Dialog that allows user to specify a new config file section name.
Used to get new highlight theme and keybinding set names.
The 'return value' for the dialog, used two placed in configDialog.py,
is the .result attribute set in the Ok and Cancel methods.
"""
from tkinter import *
import tkinter.messagebox as tkMessageBox

class GetCfgSectionNameDialog(Toplevel):
    def __init__(self, parent, title, message, used_names, _htest=False):
        """
        message - string, informational message to display
        used_names - string collection, names already in use for validity check
        _htest - bool, change box location when running htest
        """
        Toplevel.__init__(self, parent)
        self.configure(borderwidth=5)
        self.resizable(height=FALSE, width=FALSE)
        self.title(title)
        self.transient(parent)
        self.grab_set()
        self.protocol("WM_DELETE_WINDOW", self.Cancel)
        self.parent = parent
        self.message = message
        self.used_names = used_names
        self.create_widgets()
        self.withdraw()  #hide while setting geometry
        self.update_idletasks()
        #needs to be done here so that the winfo_reqwidth is valid
        self.messageInfo.config(width=self.frameMain.winfo_reqwidth())
        self.geometry(
                "+%d+%d" % (
                    parent.winfo_rootx() +
                    (parent.winfo_width()/2 - self.winfo_reqwidth()/2),
                    parent.winfo_rooty() +
                    ((parent.winfo_height()/2 - self.winfo_reqheight()/2)
                    if not _htest else 100)
                ) )  #centre dialog over parent (or below htest box)
        self.deiconify()  #geometry set, unhide
        self.wait_window()

    def create_widgets(self):
        self.name = StringVar(self.parent)
        self.fontSize = StringVar(self.parent)
        self.frameMain = Frame(self, borderwidth=2, relief=SUNKEN)
        self.frameMain.pack(side=TOP, expand=TRUE, fill=BOTH)
        self.messageInfo = Message(self.frameMain, anchor=W, justify=LEFT,
                    padx=5, pady=5, text=self.message) #,aspect=200)
        entryName = Entry(self.frameMain, textvariable=self.name, width=30)
        entryName.focus_set()
        self.messageInfo.pack(padx=5, pady=5) #, expand=TRUE, fill=BOTH)
        entryName.pack(padx=5, pady=5)

        frameButtons = Frame(self, pady=2)
        frameButtons.pack(side=BOTTOM)
        self.buttonOk = Button(frameButtons, text='Ok',
                width=8, command=self.Ok)
        self.buttonOk.pack(side=LEFT, padx=5)
        self.buttonCancel = Button(frameButtons, text='Cancel',
                width=8, command=self.Cancel)
        self.buttonCancel.pack(side=RIGHT, padx=5)

    def name_ok(self):
        ''' After stripping entered name, check that it is a  sensible
        ConfigParser file section name. Return it if it is, '' if not.
        '''
        name = self.name.get().strip()
        if not name: #no name specified
            tkMessageBox.showerror(title='Name Error',
                    message='No name specified.', parent=self)
        elif len(name)>30: #name too long
            tkMessageBox.showerror(title='Name Error',
                    message='Name too long. It should be no more than '+
                    '30 characters.', parent=self)
            name = ''
        elif name in self.used_names:
            tkMessageBox.showerror(title='Name Error',
                    message='This name is already in use.', parent=self)
            name = ''
        return name

    def Ok(self, event=None):
        name = self.name_ok()
        if name:
            self.result = name
            self.destroy()

    def Cancel(self, event=None):
        self.result = ''
        self.destroy()

if __name__ == '__main__':
    import unittest
    unittest.main('idlelib.idle_test.test_config_name', verbosity=2, exit=False)

    from idlelib.idle_test.htest import run
    run(GetCfgSectionNameDialog)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2024 08:31:37
root / linksafe
0755
Icons
--
May 20 2024 08:31:37
root / linksafe
0755
__pycache__
--
May 20 2024 08:31:37
root / linksafe
0755
idle_test
--
May 20 2024 08:31:37
root / linksafe
0755
AutoComplete.py
8.986 KB
April 17 2024 17:09:57
root / linksafe
0644
AutoCompleteWindow.py
17.323 KB
April 17 2024 17:09:57
root / linksafe
0644
AutoExpand.py
3.315 KB
April 17 2024 17:09:57
root / linksafe
0644
Bindings.py
2.975 KB
April 17 2024 17:09:57
root / linksafe
0644
CREDITS.txt
1.821 KB
March 18 2019 16:51:26
root / linksafe
0644
CallTipWindow.py
5.893 KB
April 17 2024 17:09:57
root / linksafe
0644
CallTips.py
5.793 KB
April 17 2024 17:09:57
root / linksafe
0644
ChangeLog
55.071 KB
March 18 2019 16:51:26
root / linksafe
0644
ClassBrowser.py
6.835 KB
April 17 2024 17:09:58
root / linksafe
0644
CodeContext.py
8.152 KB
April 17 2024 17:09:57
root / linksafe
0644
ColorDelegator.py
9.468 KB
April 17 2024 17:09:57
root / linksafe
0644
Debugger.py
18.319 KB
April 17 2024 17:09:57
root / linksafe
0644
Delegator.py
0.649 KB
April 17 2024 17:09:57
root / linksafe
0644
EditorWindow.py
64.511 KB
April 17 2024 17:09:57
root / linksafe
0644
FileList.py
3.724 KB
April 17 2024 17:09:57
root / linksafe
0644
FormatParagraph.py
7.116 KB
April 17 2024 17:09:58
root / linksafe
0644
GrepDialog.py
5.004 KB
April 17 2024 17:09:58
root / linksafe
0644
HISTORY.txt
10.075 KB
March 18 2019 16:51:26
root / linksafe
0644
HyperParser.py
12.575 KB
April 17 2024 17:09:57
root / linksafe
0644
IOBinding.py
19.31 KB
April 17 2024 17:09:57
root / linksafe
0644
IdleHistory.py
3.957 KB
April 17 2024 17:09:58
root / linksafe
0644
MultiCall.py
18.136 KB
April 17 2024 17:09:57
root / linksafe
0644
MultiStatusBar.py
1.316 KB
April 17 2024 17:09:57
root / linksafe
0644
NEWS.txt
38.901 KB
March 18 2019 16:51:26
root / linksafe
0644
ObjectBrowser.py
3.882 KB
April 17 2024 17:09:57
root / linksafe
0644
OutputWindow.py
4.291 KB
April 17 2024 17:09:58
root / linksafe
0644
ParenMatch.py
6.556 KB
April 17 2024 17:09:57
root / linksafe
0644
PathBrowser.py
3.132 KB
April 17 2024 17:09:57
root / linksafe
0644
Percolator.py
3.168 KB
April 17 2024 17:09:58
root / linksafe
0644
PyParse.py
19.981 KB
April 17 2024 17:09:57
root / linksafe
0644
PyShell.py
57.08 KB
April 17 2024 17:09:57
root / linksafe
0755
README.txt
7.528 KB
March 18 2019 16:51:26
root / linksafe
0644
RemoteDebugger.py
11.726 KB
April 17 2024 17:09:57
root / linksafe
0644
RemoteObjectBrowser.py
0.941 KB
April 17 2024 17:09:57
root / linksafe
0644
ReplaceDialog.py
6.484 KB
April 17 2024 17:09:57
root / linksafe
0644
RstripExtension.py
1.025 KB
April 17 2024 17:09:57
root / linksafe
0644
ScriptBinding.py
7.872 KB
April 17 2024 17:09:57
root / linksafe
0644
ScrolledList.py
4.272 KB
April 17 2024 17:09:57
root / linksafe
0644
SearchDialog.py
2.568 KB
April 17 2024 17:09:57
root / linksafe
0644
SearchDialogBase.py
6.845 KB
April 17 2024 17:09:57
root / linksafe
0644
SearchEngine.py
7.31 KB
April 17 2024 17:09:58
root / linksafe
0644
StackViewer.py
4.322 KB
April 17 2024 17:09:58
root / linksafe
0644
TODO.txt
8.279 KB
March 18 2019 16:51:26
root / linksafe
0644
ToolTip.py
3.099 KB
April 17 2024 17:09:58
root / linksafe
0644
TreeWidget.py
14.672 KB
April 17 2024 17:09:57
root / linksafe
0644
UndoDelegator.py
10.562 KB
April 17 2024 17:09:57
root / linksafe
0644
WidgetRedirector.py
6.708 KB
April 17 2024 17:09:57
root / linksafe
0644
WindowList.py
2.414 KB
April 17 2024 17:09:57
root / linksafe
0644
ZoomHeight.py
1.27 KB
April 17 2024 17:09:58
root / linksafe
0644
__init__.py
0.281 KB
April 17 2024 17:09:57
root / linksafe
0644
__main__.py
0.155 KB
April 17 2024 17:09:57
root / linksafe
0644
aboutDialog.py
6.531 KB
April 17 2024 17:09:57
root / linksafe
0644
config-extensions.def
2.896 KB
March 18 2019 16:51:26
root / linksafe
0644
config-highlight.def
2.456 KB
March 18 2019 16:51:26
root / linksafe
0644
config-keys.def
7.595 KB
March 18 2019 16:51:26
root / linksafe
0644
config-main.def
2.503 KB
March 18 2019 16:51:26
root / linksafe
0644
configDialog.py
62.798 KB
April 17 2024 17:09:57
root / linksafe
0644
configHandler.py
31.442 KB
April 17 2024 17:09:57
root / linksafe
0644
configHelpSourceEdit.py
6.514 KB
April 17 2024 17:09:57
root / linksafe
0644
configSectionNameDialog.py
3.913 KB
April 17 2024 17:09:57
root / linksafe
0644
dynOptionMenuWidget.py
1.943 KB
April 17 2024 17:09:57
root / linksafe
0644
extend.txt
3.557 KB
March 18 2019 16:51:26
root / linksafe
0644
help.html
40.162 KB
March 18 2019 16:51:26
root / linksafe
0644
help.py
9.474 KB
April 17 2024 17:09:57
root / linksafe
0644
help.txt
17.48 KB
March 18 2019 16:51:26
root / linksafe
0644
idle.py
0.391 KB
April 17 2024 17:09:57
root / linksafe
0644
idle.pyw
0.557 KB
March 18 2019 16:51:26
root / linksafe
0644
idlever.py
0.405 KB
April 17 2024 17:09:57
root / linksafe
0644
keybindingDialog.py
12.125 KB
April 17 2024 17:09:57
root / linksafe
0644
macosxSupport.py
8.48 KB
April 17 2024 17:09:57
root / linksafe
0644
rpc.py
20.295 KB
April 17 2024 17:09:57
root / linksafe
0644
run.py
13.353 KB
April 17 2024 17:09:57
root / linksafe
0644
tabbedpages.py
17.986 KB
April 17 2024 17:09:57
root / linksafe
0644
textView.py
3.149 KB
April 17 2024 17:09:57
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF