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 resource 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 resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.
- cget(*args, **kw)#
Return the resource value for a KEY given as string.
- config(cnf={}, **kw)#
Configure resources of a widget.
The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method keys.
- configure(cnf={}, **kw)#
Configure resources of a widget.
The values for resources are specified as keyword arguments. To get an overview about the allowed keyword arguments call the method keys.
- 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)#