KekLib.OurTkinter#
OurTkinter.py
Copyright (c) 2016-2024, Masatsuyo Takahashi, KEK-PF
- class Dialog(parent, title=None, auto_geometry=True, geometry_cb=None, visible=True, block=True, location=None)#
Bases:
Toplevel
Class to open dialogs.
This class is intended as a base class for custom dialogs
Initialize a dialog.
- Parameters:
window (parent -- a parent)
title (title -- the dialog)
- apply()#
process the data
This method is called automatically to process the data, after the dialog is destroyed. By default, it does nothing.
- body(master)#
create dialog body.
return widget that should have initial focus. This method should be overridden, and is called by the __init__ method.
- buttonbox(frame=None)#
add standard button box.
override if you do not want the standard buttons
- cancel(event=None)#
- destroy()#
Destroy the window
- ok(event=None)#
- validate()#
validate the data
This method is called automatically to validate the data before the dialog is destroyed. By default, it always validates OK.
- checkFolder(parent, folder_var, folder_entry)#
- is_empty_val(val)#