Class Window
Input Box
For inputting text and passwords in a Pythonic way.
Example Usage:
from ooodev.dialog.tk_input import Window
pass_inst = Window(title="Password", input_msg="Input Password:", is_password=True)
pwd = pass_inst.get_input()
print(pwd)
Note
LibreOffice does not ship with tkinter and therefore this option will not work in all setups. Generally speaking this can be used in Linux.
See also
- class ooodev.dialog.tk_input.Window(title='Input', input_msg='Enter Input:', is_password=False)[source]
Creates a dialog Window
- Parameters:
title (str) –
input_msg (str) –
is_password (bool) –
- __init__(title='Input', input_msg='Enter Input:', is_password=False)[source]
Class Constructor
- Parameters:
title (str, optional) – Title to display for Dialog. Defaults to “Input”.
input_msg (_type_, optional) – Message to display for Dialog. Defaults to “Enter Input:”.
is_password (bool, optional) – Determines if input box is masked for password input. Defaults to False.
- Return type:
None