dialog library for windows
Project description
wdlg
This package is a small python library for windows. It provides functions for creating file/directory selection dialogs and message boxes.
This package is written entirely in Python.
It uses ctypes
module to display dialogs and has no dependencies on tkinter
or outside the standard library.
Function and argument names are almost the same as those of tkinter
.
I feel that it's easy to port code from tkinter
to wdlg
, and vice versa.
Installation
pip install wdlg
Example
# it's easy to port code from tkinter to wdlg.
# from tkinter import filedialog
# from tkinter import messagebox
from wdlg import filedialog
from wdlg import messagebox
dir_path = filedialog.askdirectory(initialdir="C:\\Users")
messagebox.showinfo(title="Hello World", message=dir_path)
License
BSD Zero Clause License
see LICENSE.txt.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wdlg-0.0.2.zip
(9.6 kB
view hashes)
Built Distribution
wdlg-0.0.2-py3-none-any.whl
(7.3 kB
view hashes)