KekLib.TkCustomWidgets#

ファイル名: TkCustomWidgets.py

処理内容:

FileNodeEntry —– 上位クラス FolderEntry ——- Drag&drop 機能および選択ボタン付きの Folder 入力用 Entry FileEntry ——- Drag&drop 機能および選択ボタン付きの File 入力用 Entry

Copyright (c) 2017-2021, Masatsuyo Takahashi

class FileEntry(parent, **kw)#

Bases: FileNodeEntry

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.

check(*args)#
select()#
class FileNodeEntry(parent, **kw)#

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.

add_dnd_bind()#
bind(*args)#

Overwrites the tk.BaseWidget.bind method so we don’t have to use a separate method for regular and dnd binding, simply checks which one to call, and if a dnd sequence is specified, and converts the simple and clear tkinterDnD events to tkdnd events

Original tkdnd events:

<<Drop>> <<Drop:*>> <<Drop:DND_Text>> <<Drop:DND_Files>> <<Drop:DND_Color>> <<DragInitCmd>> <<DragEndCmd>> <<DropEnter>> <<DropLeave>> <<DropPosition>>

Simple and clear tkinterDnD events:

<<Drop:Any>> <<Drop:Text>> <<Drop:File>> <<Drop:Color>> <<DragStart>> <<DragEnd>> <<DragEnter>> <<DragLeave>> <<DragMove>>

check()#
config(*args, **kwargs)#

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.

delete(*args)#
insert(*args)#
on_button_click()#
on_entry(*args, **kwargs)#
select()#
set_error()#
class FolderEntry(parent, **kw)#

Bases: FileNodeEntry

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.

check(*args)#
select()#