Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../lib64/python3..../tkinter
File: ttk.py
script = _script_from_settings(settings)
[500] Fix | Delete
self.tk.call(self._name, "theme", "settings", themename, script)
[501] Fix | Delete
[502] Fix | Delete
[503] Fix | Delete
def theme_names(self):
[504] Fix | Delete
"""Returns a list of all known themes."""
[505] Fix | Delete
return self.tk.splitlist(self.tk.call(self._name, "theme", "names"))
[506] Fix | Delete
[507] Fix | Delete
[508] Fix | Delete
def theme_use(self, themename=None):
[509] Fix | Delete
"""If themename is None, returns the theme in use, otherwise, set
[510] Fix | Delete
the current theme to themename, refreshes all widgets and emits
[511] Fix | Delete
a <<ThemeChanged>> event."""
[512] Fix | Delete
if themename is None:
[513] Fix | Delete
# Starting on Tk 8.6, checking this global is no longer needed
[514] Fix | Delete
# since it allows doing self.tk.call(self._name, "theme", "use")
[515] Fix | Delete
return self.tk.eval("return $ttk::currentTheme")
[516] Fix | Delete
[517] Fix | Delete
# using "ttk::setTheme" instead of "ttk::style theme use" causes
[518] Fix | Delete
# the variable currentTheme to be updated, also, ttk::setTheme calls
[519] Fix | Delete
# "ttk::style theme use" in order to change theme.
[520] Fix | Delete
self.tk.call("ttk::setTheme", themename)
[521] Fix | Delete
[522] Fix | Delete
[523] Fix | Delete
class Widget(tkinter.Widget):
[524] Fix | Delete
"""Base class for Tk themed widgets."""
[525] Fix | Delete
[526] Fix | Delete
def __init__(self, master, widgetname, kw=None):
[527] Fix | Delete
"""Constructs a Ttk Widget with the parent master.
[528] Fix | Delete
[529] Fix | Delete
STANDARD OPTIONS
[530] Fix | Delete
[531] Fix | Delete
class, cursor, takefocus, style
[532] Fix | Delete
[533] Fix | Delete
SCROLLABLE WIDGET OPTIONS
[534] Fix | Delete
[535] Fix | Delete
xscrollcommand, yscrollcommand
[536] Fix | Delete
[537] Fix | Delete
LABEL WIDGET OPTIONS
[538] Fix | Delete
[539] Fix | Delete
text, textvariable, underline, image, compound, width
[540] Fix | Delete
[541] Fix | Delete
WIDGET STATES
[542] Fix | Delete
[543] Fix | Delete
active, disabled, focus, pressed, selected, background,
[544] Fix | Delete
readonly, alternate, invalid
[545] Fix | Delete
"""
[546] Fix | Delete
master = setup_master(master)
[547] Fix | Delete
if not getattr(master, '_tile_loaded', False):
[548] Fix | Delete
# Load tile now, if needed
[549] Fix | Delete
_load_tile(master)
[550] Fix | Delete
tkinter.Widget.__init__(self, master, widgetname, kw=kw)
[551] Fix | Delete
[552] Fix | Delete
[553] Fix | Delete
def identify(self, x, y):
[554] Fix | Delete
"""Returns the name of the element at position x, y, or the empty
[555] Fix | Delete
string if the point does not lie within any element.
[556] Fix | Delete
[557] Fix | Delete
x and y are pixel coordinates relative to the widget."""
[558] Fix | Delete
return self.tk.call(self._w, "identify", x, y)
[559] Fix | Delete
[560] Fix | Delete
[561] Fix | Delete
def instate(self, statespec, callback=None, *args, **kw):
[562] Fix | Delete
"""Test the widget's state.
[563] Fix | Delete
[564] Fix | Delete
If callback is not specified, returns True if the widget state
[565] Fix | Delete
matches statespec and False otherwise. If callback is specified,
[566] Fix | Delete
then it will be invoked with *args, **kw if the widget state
[567] Fix | Delete
matches statespec. statespec is expected to be a sequence."""
[568] Fix | Delete
ret = self.tk.getboolean(
[569] Fix | Delete
self.tk.call(self._w, "instate", ' '.join(statespec)))
[570] Fix | Delete
if ret and callback:
[571] Fix | Delete
return callback(*args, **kw)
[572] Fix | Delete
[573] Fix | Delete
return ret
[574] Fix | Delete
[575] Fix | Delete
[576] Fix | Delete
def state(self, statespec=None):
[577] Fix | Delete
"""Modify or inquire widget state.
[578] Fix | Delete
[579] Fix | Delete
Widget state is returned if statespec is None, otherwise it is
[580] Fix | Delete
set according to the statespec flags and then a new state spec
[581] Fix | Delete
is returned indicating which flags were changed. statespec is
[582] Fix | Delete
expected to be a sequence."""
[583] Fix | Delete
if statespec is not None:
[584] Fix | Delete
statespec = ' '.join(statespec)
[585] Fix | Delete
[586] Fix | Delete
return self.tk.splitlist(str(self.tk.call(self._w, "state", statespec)))
[587] Fix | Delete
[588] Fix | Delete
[589] Fix | Delete
class Button(Widget):
[590] Fix | Delete
"""Ttk Button widget, displays a textual label and/or image, and
[591] Fix | Delete
evaluates a command when pressed."""
[592] Fix | Delete
[593] Fix | Delete
def __init__(self, master=None, **kw):
[594] Fix | Delete
"""Construct a Ttk Button widget with the parent master.
[595] Fix | Delete
[596] Fix | Delete
STANDARD OPTIONS
[597] Fix | Delete
[598] Fix | Delete
class, compound, cursor, image, state, style, takefocus,
[599] Fix | Delete
text, textvariable, underline, width
[600] Fix | Delete
[601] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[602] Fix | Delete
[603] Fix | Delete
command, default, width
[604] Fix | Delete
"""
[605] Fix | Delete
Widget.__init__(self, master, "ttk::button", kw)
[606] Fix | Delete
[607] Fix | Delete
[608] Fix | Delete
def invoke(self):
[609] Fix | Delete
"""Invokes the command associated with the button."""
[610] Fix | Delete
return self.tk.call(self._w, "invoke")
[611] Fix | Delete
[612] Fix | Delete
[613] Fix | Delete
class Checkbutton(Widget):
[614] Fix | Delete
"""Ttk Checkbutton widget which is either in on- or off-state."""
[615] Fix | Delete
[616] Fix | Delete
def __init__(self, master=None, **kw):
[617] Fix | Delete
"""Construct a Ttk Checkbutton widget with the parent master.
[618] Fix | Delete
[619] Fix | Delete
STANDARD OPTIONS
[620] Fix | Delete
[621] Fix | Delete
class, compound, cursor, image, state, style, takefocus,
[622] Fix | Delete
text, textvariable, underline, width
[623] Fix | Delete
[624] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[625] Fix | Delete
[626] Fix | Delete
command, offvalue, onvalue, variable
[627] Fix | Delete
"""
[628] Fix | Delete
Widget.__init__(self, master, "ttk::checkbutton", kw)
[629] Fix | Delete
[630] Fix | Delete
[631] Fix | Delete
def invoke(self):
[632] Fix | Delete
"""Toggles between the selected and deselected states and
[633] Fix | Delete
invokes the associated command. If the widget is currently
[634] Fix | Delete
selected, sets the option variable to the offvalue option
[635] Fix | Delete
and deselects the widget; otherwise, sets the option variable
[636] Fix | Delete
to the option onvalue.
[637] Fix | Delete
[638] Fix | Delete
Returns the result of the associated command."""
[639] Fix | Delete
return self.tk.call(self._w, "invoke")
[640] Fix | Delete
[641] Fix | Delete
[642] Fix | Delete
class Entry(Widget, tkinter.Entry):
[643] Fix | Delete
"""Ttk Entry widget displays a one-line text string and allows that
[644] Fix | Delete
string to be edited by the user."""
[645] Fix | Delete
[646] Fix | Delete
def __init__(self, master=None, widget=None, **kw):
[647] Fix | Delete
"""Constructs a Ttk Entry widget with the parent master.
[648] Fix | Delete
[649] Fix | Delete
STANDARD OPTIONS
[650] Fix | Delete
[651] Fix | Delete
class, cursor, style, takefocus, xscrollcommand
[652] Fix | Delete
[653] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[654] Fix | Delete
[655] Fix | Delete
exportselection, invalidcommand, justify, show, state,
[656] Fix | Delete
textvariable, validate, validatecommand, width
[657] Fix | Delete
[658] Fix | Delete
VALIDATION MODES
[659] Fix | Delete
[660] Fix | Delete
none, key, focus, focusin, focusout, all
[661] Fix | Delete
"""
[662] Fix | Delete
Widget.__init__(self, master, widget or "ttk::entry", kw)
[663] Fix | Delete
[664] Fix | Delete
[665] Fix | Delete
def bbox(self, index):
[666] Fix | Delete
"""Return a tuple of (x, y, width, height) which describes the
[667] Fix | Delete
bounding box of the character given by index."""
[668] Fix | Delete
return self._getints(self.tk.call(self._w, "bbox", index))
[669] Fix | Delete
[670] Fix | Delete
[671] Fix | Delete
def identify(self, x, y):
[672] Fix | Delete
"""Returns the name of the element at position x, y, or the
[673] Fix | Delete
empty string if the coordinates are outside the window."""
[674] Fix | Delete
return self.tk.call(self._w, "identify", x, y)
[675] Fix | Delete
[676] Fix | Delete
[677] Fix | Delete
def validate(self):
[678] Fix | Delete
"""Force revalidation, independent of the conditions specified
[679] Fix | Delete
by the validate option. Returns False if validation fails, True
[680] Fix | Delete
if it succeeds. Sets or clears the invalid state accordingly."""
[681] Fix | Delete
return self.tk.getboolean(self.tk.call(self._w, "validate"))
[682] Fix | Delete
[683] Fix | Delete
[684] Fix | Delete
class Combobox(Entry):
[685] Fix | Delete
"""Ttk Combobox widget combines a text field with a pop-down list of
[686] Fix | Delete
values."""
[687] Fix | Delete
[688] Fix | Delete
def __init__(self, master=None, **kw):
[689] Fix | Delete
"""Construct a Ttk Combobox widget with the parent master.
[690] Fix | Delete
[691] Fix | Delete
STANDARD OPTIONS
[692] Fix | Delete
[693] Fix | Delete
class, cursor, style, takefocus
[694] Fix | Delete
[695] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[696] Fix | Delete
[697] Fix | Delete
exportselection, justify, height, postcommand, state,
[698] Fix | Delete
textvariable, values, width
[699] Fix | Delete
"""
[700] Fix | Delete
Entry.__init__(self, master, "ttk::combobox", **kw)
[701] Fix | Delete
[702] Fix | Delete
[703] Fix | Delete
def current(self, newindex=None):
[704] Fix | Delete
"""If newindex is supplied, sets the combobox value to the
[705] Fix | Delete
element at position newindex in the list of values. Otherwise,
[706] Fix | Delete
returns the index of the current value in the list of values
[707] Fix | Delete
or -1 if the current value does not appear in the list."""
[708] Fix | Delete
if newindex is None:
[709] Fix | Delete
return self.tk.getint(self.tk.call(self._w, "current"))
[710] Fix | Delete
return self.tk.call(self._w, "current", newindex)
[711] Fix | Delete
[712] Fix | Delete
[713] Fix | Delete
def set(self, value):
[714] Fix | Delete
"""Sets the value of the combobox to value."""
[715] Fix | Delete
self.tk.call(self._w, "set", value)
[716] Fix | Delete
[717] Fix | Delete
[718] Fix | Delete
class Frame(Widget):
[719] Fix | Delete
"""Ttk Frame widget is a container, used to group other widgets
[720] Fix | Delete
together."""
[721] Fix | Delete
[722] Fix | Delete
def __init__(self, master=None, **kw):
[723] Fix | Delete
"""Construct a Ttk Frame with parent master.
[724] Fix | Delete
[725] Fix | Delete
STANDARD OPTIONS
[726] Fix | Delete
[727] Fix | Delete
class, cursor, style, takefocus
[728] Fix | Delete
[729] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[730] Fix | Delete
[731] Fix | Delete
borderwidth, relief, padding, width, height
[732] Fix | Delete
"""
[733] Fix | Delete
Widget.__init__(self, master, "ttk::frame", kw)
[734] Fix | Delete
[735] Fix | Delete
[736] Fix | Delete
class Label(Widget):
[737] Fix | Delete
"""Ttk Label widget displays a textual label and/or image."""
[738] Fix | Delete
[739] Fix | Delete
def __init__(self, master=None, **kw):
[740] Fix | Delete
"""Construct a Ttk Label with parent master.
[741] Fix | Delete
[742] Fix | Delete
STANDARD OPTIONS
[743] Fix | Delete
[744] Fix | Delete
class, compound, cursor, image, style, takefocus, text,
[745] Fix | Delete
textvariable, underline, width
[746] Fix | Delete
[747] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[748] Fix | Delete
[749] Fix | Delete
anchor, background, font, foreground, justify, padding,
[750] Fix | Delete
relief, text, wraplength
[751] Fix | Delete
"""
[752] Fix | Delete
Widget.__init__(self, master, "ttk::label", kw)
[753] Fix | Delete
[754] Fix | Delete
[755] Fix | Delete
class Labelframe(Widget):
[756] Fix | Delete
"""Ttk Labelframe widget is a container used to group other widgets
[757] Fix | Delete
together. It has an optional label, which may be a plain text string
[758] Fix | Delete
or another widget."""
[759] Fix | Delete
[760] Fix | Delete
def __init__(self, master=None, **kw):
[761] Fix | Delete
"""Construct a Ttk Labelframe with parent master.
[762] Fix | Delete
[763] Fix | Delete
STANDARD OPTIONS
[764] Fix | Delete
[765] Fix | Delete
class, cursor, style, takefocus
[766] Fix | Delete
[767] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[768] Fix | Delete
labelanchor, text, underline, padding, labelwidget, width,
[769] Fix | Delete
height
[770] Fix | Delete
"""
[771] Fix | Delete
Widget.__init__(self, master, "ttk::labelframe", kw)
[772] Fix | Delete
[773] Fix | Delete
LabelFrame = Labelframe # tkinter name compatibility
[774] Fix | Delete
[775] Fix | Delete
[776] Fix | Delete
class Menubutton(Widget):
[777] Fix | Delete
"""Ttk Menubutton widget displays a textual label and/or image, and
[778] Fix | Delete
displays a menu when pressed."""
[779] Fix | Delete
[780] Fix | Delete
def __init__(self, master=None, **kw):
[781] Fix | Delete
"""Construct a Ttk Menubutton with parent master.
[782] Fix | Delete
[783] Fix | Delete
STANDARD OPTIONS
[784] Fix | Delete
[785] Fix | Delete
class, compound, cursor, image, state, style, takefocus,
[786] Fix | Delete
text, textvariable, underline, width
[787] Fix | Delete
[788] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[789] Fix | Delete
[790] Fix | Delete
direction, menu
[791] Fix | Delete
"""
[792] Fix | Delete
Widget.__init__(self, master, "ttk::menubutton", kw)
[793] Fix | Delete
[794] Fix | Delete
[795] Fix | Delete
class Notebook(Widget):
[796] Fix | Delete
"""Ttk Notebook widget manages a collection of windows and displays
[797] Fix | Delete
a single one at a time. Each child window is associated with a tab,
[798] Fix | Delete
which the user may select to change the currently-displayed window."""
[799] Fix | Delete
[800] Fix | Delete
def __init__(self, master=None, **kw):
[801] Fix | Delete
"""Construct a Ttk Notebook with parent master.
[802] Fix | Delete
[803] Fix | Delete
STANDARD OPTIONS
[804] Fix | Delete
[805] Fix | Delete
class, cursor, style, takefocus
[806] Fix | Delete
[807] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[808] Fix | Delete
[809] Fix | Delete
height, padding, width
[810] Fix | Delete
[811] Fix | Delete
TAB OPTIONS
[812] Fix | Delete
[813] Fix | Delete
state, sticky, padding, text, image, compound, underline
[814] Fix | Delete
[815] Fix | Delete
TAB IDENTIFIERS (tab_id)
[816] Fix | Delete
[817] Fix | Delete
The tab_id argument found in several methods may take any of
[818] Fix | Delete
the following forms:
[819] Fix | Delete
[820] Fix | Delete
* An integer between zero and the number of tabs
[821] Fix | Delete
* The name of a child window
[822] Fix | Delete
* A positional specification of the form "@x,y", which
[823] Fix | Delete
defines the tab
[824] Fix | Delete
* The string "current", which identifies the
[825] Fix | Delete
currently-selected tab
[826] Fix | Delete
* The string "end", which returns the number of tabs (only
[827] Fix | Delete
valid for method index)
[828] Fix | Delete
"""
[829] Fix | Delete
Widget.__init__(self, master, "ttk::notebook", kw)
[830] Fix | Delete
[831] Fix | Delete
[832] Fix | Delete
def add(self, child, **kw):
[833] Fix | Delete
"""Adds a new tab to the notebook.
[834] Fix | Delete
[835] Fix | Delete
If window is currently managed by the notebook but hidden, it is
[836] Fix | Delete
restored to its previous position."""
[837] Fix | Delete
self.tk.call(self._w, "add", child, *(_format_optdict(kw)))
[838] Fix | Delete
[839] Fix | Delete
[840] Fix | Delete
def forget(self, tab_id):
[841] Fix | Delete
"""Removes the tab specified by tab_id, unmaps and unmanages the
[842] Fix | Delete
associated window."""
[843] Fix | Delete
self.tk.call(self._w, "forget", tab_id)
[844] Fix | Delete
[845] Fix | Delete
[846] Fix | Delete
def hide(self, tab_id):
[847] Fix | Delete
"""Hides the tab specified by tab_id.
[848] Fix | Delete
[849] Fix | Delete
The tab will not be displayed, but the associated window remains
[850] Fix | Delete
managed by the notebook and its configuration remembered. Hidden
[851] Fix | Delete
tabs may be restored with the add command."""
[852] Fix | Delete
self.tk.call(self._w, "hide", tab_id)
[853] Fix | Delete
[854] Fix | Delete
[855] Fix | Delete
def identify(self, x, y):
[856] Fix | Delete
"""Returns the name of the tab element at position x, y, or the
[857] Fix | Delete
empty string if none."""
[858] Fix | Delete
return self.tk.call(self._w, "identify", x, y)
[859] Fix | Delete
[860] Fix | Delete
[861] Fix | Delete
def index(self, tab_id):
[862] Fix | Delete
"""Returns the numeric index of the tab specified by tab_id, or
[863] Fix | Delete
the total number of tabs if tab_id is the string "end"."""
[864] Fix | Delete
return self.tk.getint(self.tk.call(self._w, "index", tab_id))
[865] Fix | Delete
[866] Fix | Delete
[867] Fix | Delete
def insert(self, pos, child, **kw):
[868] Fix | Delete
"""Inserts a pane at the specified position.
[869] Fix | Delete
[870] Fix | Delete
pos is either the string end, an integer index, or the name of
[871] Fix | Delete
a managed child. If child is already managed by the notebook,
[872] Fix | Delete
moves it to the specified position."""
[873] Fix | Delete
self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
[874] Fix | Delete
[875] Fix | Delete
[876] Fix | Delete
def select(self, tab_id=None):
[877] Fix | Delete
"""Selects the specified tab.
[878] Fix | Delete
[879] Fix | Delete
The associated child window will be displayed, and the
[880] Fix | Delete
previously-selected window (if different) is unmapped. If tab_id
[881] Fix | Delete
is omitted, returns the widget name of the currently selected
[882] Fix | Delete
pane."""
[883] Fix | Delete
return self.tk.call(self._w, "select", tab_id)
[884] Fix | Delete
[885] Fix | Delete
[886] Fix | Delete
def tab(self, tab_id, option=None, **kw):
[887] Fix | Delete
"""Query or modify the options of the specific tab_id.
[888] Fix | Delete
[889] Fix | Delete
If kw is not given, returns a dict of the tab option values. If option
[890] Fix | Delete
is specified, returns the value of that option. Otherwise, sets the
[891] Fix | Delete
options to the corresponding values."""
[892] Fix | Delete
if option is not None:
[893] Fix | Delete
kw[option] = None
[894] Fix | Delete
return _val_or_dict(self.tk, kw, self._w, "tab", tab_id)
[895] Fix | Delete
[896] Fix | Delete
[897] Fix | Delete
def tabs(self):
[898] Fix | Delete
"""Returns a list of windows managed by the notebook."""
[899] Fix | Delete
return self.tk.splitlist(self.tk.call(self._w, "tabs") or ())
[900] Fix | Delete
[901] Fix | Delete
[902] Fix | Delete
def enable_traversal(self):
[903] Fix | Delete
"""Enable keyboard traversal for a toplevel window containing
[904] Fix | Delete
this notebook.
[905] Fix | Delete
[906] Fix | Delete
This will extend the bindings for the toplevel window containing
[907] Fix | Delete
this notebook as follows:
[908] Fix | Delete
[909] Fix | Delete
Control-Tab: selects the tab following the currently selected
[910] Fix | Delete
one
[911] Fix | Delete
[912] Fix | Delete
Shift-Control-Tab: selects the tab preceding the currently
[913] Fix | Delete
selected one
[914] Fix | Delete
[915] Fix | Delete
Alt-K: where K is the mnemonic (underlined) character of any
[916] Fix | Delete
tab, will select that tab.
[917] Fix | Delete
[918] Fix | Delete
Multiple notebooks in a single toplevel may be enabled for
[919] Fix | Delete
traversal, including nested notebooks. However, notebook traversal
[920] Fix | Delete
only works properly if all panes are direct children of the
[921] Fix | Delete
notebook."""
[922] Fix | Delete
# The only, and good, difference I see is about mnemonics, which works
[923] Fix | Delete
# after calling this method. Control-Tab and Shift-Control-Tab always
[924] Fix | Delete
# works (here at least).
[925] Fix | Delete
self.tk.call("ttk::notebook::enableTraversal", self._w)
[926] Fix | Delete
[927] Fix | Delete
[928] Fix | Delete
class Panedwindow(Widget, tkinter.PanedWindow):
[929] Fix | Delete
"""Ttk Panedwindow widget displays a number of subwindows, stacked
[930] Fix | Delete
either vertically or horizontally."""
[931] Fix | Delete
[932] Fix | Delete
def __init__(self, master=None, **kw):
[933] Fix | Delete
"""Construct a Ttk Panedwindow with parent master.
[934] Fix | Delete
[935] Fix | Delete
STANDARD OPTIONS
[936] Fix | Delete
[937] Fix | Delete
class, cursor, style, takefocus
[938] Fix | Delete
[939] Fix | Delete
WIDGET-SPECIFIC OPTIONS
[940] Fix | Delete
[941] Fix | Delete
orient, width, height
[942] Fix | Delete
[943] Fix | Delete
PANE OPTIONS
[944] Fix | Delete
[945] Fix | Delete
weight
[946] Fix | Delete
"""
[947] Fix | Delete
Widget.__init__(self, master, "ttk::panedwindow", kw)
[948] Fix | Delete
[949] Fix | Delete
[950] Fix | Delete
forget = tkinter.PanedWindow.forget # overrides Pack.forget
[951] Fix | Delete
[952] Fix | Delete
[953] Fix | Delete
def insert(self, pos, child, **kw):
[954] Fix | Delete
"""Inserts a pane at the specified positions.
[955] Fix | Delete
[956] Fix | Delete
pos is either the string end, and integer index, or the name
[957] Fix | Delete
of a child. If child is already managed by the paned window,
[958] Fix | Delete
moves it to the specified position."""
[959] Fix | Delete
self.tk.call(self._w, "insert", pos, child, *(_format_optdict(kw)))
[960] Fix | Delete
[961] Fix | Delete
[962] Fix | Delete
def pane(self, pane, option=None, **kw):
[963] Fix | Delete
"""Query or modify the options of the specified pane.
[964] Fix | Delete
[965] Fix | Delete
pane is either an integer index or the name of a managed subwindow.
[966] Fix | Delete
If kw is not given, returns a dict of the pane option values. If
[967] Fix | Delete
option is specified then the value for that option is returned.
[968] Fix | Delete
Otherwise, sets the options to the corresponding values."""
[969] Fix | Delete
if option is not None:
[970] Fix | Delete
kw[option] = None
[971] Fix | Delete
return _val_or_dict(self.tk, kw, self._w, "pane", pane)
[972] Fix | Delete
[973] Fix | Delete
[974] Fix | Delete
def sashpos(self, index, newpos=None):
[975] Fix | Delete
"""If newpos is specified, sets the position of sash number index.
[976] Fix | Delete
[977] Fix | Delete
May adjust the positions of adjacent sashes to ensure that
[978] Fix | Delete
positions are monotonically increasing. Sash positions are further
[979] Fix | Delete
constrained to be between 0 and the total size of the widget.
[980] Fix | Delete
[981] Fix | Delete
Returns the new position of sash number index."""
[982] Fix | Delete
return self.tk.getint(self.tk.call(self._w, "sashpos", index, newpos))
[983] Fix | Delete
[984] Fix | Delete
PanedWindow = Panedwindow # tkinter name compatibility
[985] Fix | Delete
[986] Fix | Delete
[987] Fix | Delete
class Progressbar(Widget):
[988] Fix | Delete
"""Ttk Progressbar widget shows the status of a long-running
[989] Fix | Delete
operation. They can operate in two modes: determinate mode shows the
[990] Fix | Delete
amount completed relative to the total amount of work to be done, and
[991] Fix | Delete
indeterminate mode provides an animated display to let the user know
[992] Fix | Delete
that something is happening."""
[993] Fix | Delete
[994] Fix | Delete
def __init__(self, master=None, **kw):
[995] Fix | Delete
"""Construct a Ttk Progressbar with parent master.
[996] Fix | Delete
[997] Fix | Delete
STANDARD OPTIONS
[998] Fix | Delete
[999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function