Python tkSimpleDialog.Dialog() Examples
The following are 21
code examples of tkSimpleDialog.Dialog().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
tkSimpleDialog
, or try the search function
.
Example #1
Source File: delete_dialog.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 6 votes |
def buttonbox(self): """ Display only one button if there's no selection. Otherwise, use the default method to display two buttons. """ if len(self.id_tuples) == 0: box = tk.Frame(self) w = tk.Button( box, text="OK", width=10, command=self.cancel, default="active" ) w.pack(side="left", padx=5, pady=5) self.bind("<Return>", self.cancel) box.pack() else: tkSimpleDialog.Dialog.buttonbox(self)
Example #2
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, filterDefaults): self.filterValues = filterDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #3
Source File: delete_dialog.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__(self, parent_window, tree, title="Confirm Deletion"): self.tree = tree self.id_tuples = list() for x in self.tree.treeview.selection(): if x not in [y[0] for y in self.id_tuples]: self.id_tuples.extend(subtree_ids(self.tree.treeview, x)) tkSimpleDialog.Dialog.__init__(self, parent_window, title)
Example #4
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, prefDefaults): self.prefValues = prefDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #5
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, prefDefaults): self.prefValues = prefDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #6
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, filterDefaults): self.filterValues = filterDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #7
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, prefDefaults): self.prefValues = prefDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #8
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, filterDefaults): self.filterValues = filterDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #9
Source File: MiniNAM.py From MiniNAM with GNU General Public License v2.0 | 5 votes |
def __init__(self, parent, title, prefDefaults): self.prefValues = prefDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #10
Source File: pcwg_tool_reborn.py From PCWG with MIT License | 5 votes |
def __init__(self, parent, name): self.name = name self.close = False self.save = False imgdir = os.path.join(os.path.dirname(__file__), 'img') self.img_logo = tk.PhotoImage("img_logo", file=os.path.join(imgdir, 'logo.gif')) tkSimpleDialog.Dialog.__init__(self, parent, "Confirm File Close")
Example #11
Source File: closable_Tab_with_menu.py From PCWG with MIT License | 5 votes |
def __init__(self, parent, name): self.name = name self.close = False self.save = False imgdir = os.path.join(os.path.dirname(__file__), 'img') self.img_logo = tk.PhotoImage("img_logo", file=os.path.join(imgdir, 'logo.gif')) tkSimpleDialog.Dialog.__init__(self, parent, "Confirm File Close")
Example #12
Source File: miniedit.py From Python-Network-Programming-Cookbook-Second-Edition with MIT License | 5 votes |
def __init__(self, parent, title, ctrlrDefaults=None): if ctrlrDefaults: self.ctrlrValues = ctrlrDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #13
Source File: miniedit.py From Python-Network-Programming-Cookbook-Second-Edition with MIT License | 5 votes |
def __init__(self, parent, title, linkDefaults): self.linkValues = linkDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #14
Source File: miniedit.py From Python-Network-Programming-Cookbook-Second-Edition with MIT License | 5 votes |
def __init__(self, parent, title, prefDefaults): self.prefValues = prefDefaults tkSimpleDialog.Dialog.__init__(self, parent, title)
Example #15
Source File: s3_uploader.py From s3_uploader with MIT License | 5 votes |
def destroy(self): tkSimpleDialog.Dialog.destroy(self)
Example #16
Source File: s3_uploader.py From s3_uploader with MIT License | 5 votes |
def show(self): tkSimpleDialog.Dialog.__init__(self, self._parent, "About S3 Uploader")
Example #17
Source File: runner_window.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__(self, parent_window, title="Enrich2"): self.pw = parent_window self.run_button = None self.dialog_text = tk.StringVar() self.dialog_text.set("Ready to start analysis...") tkSimpleDialog.Dialog.__init__(self, parent_window, title)
Example #18
Source File: runner_window.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__(self, parent_window, title="Enrich2"): self.pw = parent_window self.dialog_text = tk.StringVar() self.dialog_text.set("Would you like to save your config changes?") tkSimpleDialog.Dialog.__init__(self, parent_window, title)
Example #19
Source File: seqlib_apply_dialog.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__( self, parent_window, tree, source_id, title="Confirm Filtering Changes" ): self.tree = tree self.source_id = source_id self.target_ids = [ x for x in self.tree.treeview.selection() if x != source_id and type(self.tree.get_element(self.source_id)) == type(self.tree.get_element(x)) ] tkSimpleDialog.Dialog.__init__(self, parent_window, title)
Example #20
Source File: create_root_dialog.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__(self, parent_window, title="Create Root Object"): self.element_tkstring = tk.StringVar() self.cfg_dict = dict() self.output_directory_tk = FileEntry( "Output Directory", self.cfg_dict, "output directory", optional=False, directory=True, ) self.name_tk = StringEntry("Name", self.cfg_dict, "name", optional=False) self.element = None tkSimpleDialog.Dialog.__init__(self, parent_window, title)
Example #21
Source File: create_seqlib_dialog.py From Enrich2 with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__(self, parent_window, title="New SeqLib"): self.element_tkstring = tk.StringVar() self.element_type = None tkSimpleDialog.Dialog.__init__(self, parent_window, title)