KekLib.TkSupplements#

ファイル名: TkSupplements.py

処理内容:

BlinkingFrame 配下のオブジェクトを点滅できる Frame

Copyright (c) 2016-2021, Masatsuyo Takahashi, KEK-PF

class BlinkingFrame(parent, object_spec_array=None, grid=False, start_proc=None, stop_proc=None, flash_stop_type=0, debug=False)#

Bases: Frame

Construct a frame widget with the parent MASTER.

Valid option names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

flash()#
is_blinking()#
restore_init()#
start()#
stop()#
class SlimButton(parent, text, command, state='normal', height=26, width=60)#

Bases: Frame

Construct a frame widget with the parent MASTER.

Valid option names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

cget(*args, **kw)#

Return the current value of the configuration option.

config(cnf={}, **kw)#

Query or modify the configuration options of the widget.

If no arguments are specified, return a dictionary describing all of the available options for the widget.

If an option name is specified, then return a tuple describing the one named option.

If one or more keyword arguments are specified or a dictionary is specified, then modify the widget option(s) to have the given value(s).

configure(cnf={}, **kw)#

Query or modify the configuration options of the widget.

If no arguments are specified, return a dictionary describing all of the available options for the widget.

If an option name is specified, then return a tuple describing the one named option.

If one or more keyword arguments are specified or a dictionary is specified, then modify the widget option(s) to have the given value(s).

invoke()#
pack(cnf={}, **kw)#

Pack a widget in the parent widget. Use as options: after=widget - pack it after you have packed widget anchor=NSEW (or subset) - position widget according to

given direction

before=widget - pack it before you will pack widget expand=bool - expand widget if parent size grows fill=NONE or X or Y or BOTH - fill widget if widget grows in=master - use master to contain this widget in_=master - see ‘in’ option description ipadx=amount - add internal padding in x direction ipady=amount - add internal padding in y direction padx=amount - add padding in x direction pady=amount - add padding in y direction side=TOP or BOTTOM or LEFT or RIGHT - where to add this widget.

pad_text(text, length)#
set_icon(parent)#
tk_set_icon_portable(parent, name=None, module=None, use_cashed_image=False)#