Module msgbox

Module msgbox 

Source
Expand description

Synchronous message box API similar to WinAPI ShowMessageBox

This module provides simple, blocking functions for displaying dialogs, notifications, and getting user input without requiring async/await.

Structs§

MessageBoxConfig
Configuration for message box behavior
MessageBoxResponse
Extended result containing both button result and optional text

Enums§

MessageBoxIcon
Message box icons
MessageBoxResult
Message box result
MessageBoxType
Message box types similar to WinAPI MessageBox

Functions§

ask_yes_no
Simple yes/no question
ask_yes_no_ex
Enhanced Yes/No dialog with customizable default button
confirm
Simple OK/Cancel confirmation
error
Quick error message - shows for 7 seconds
info
Quick info message - shows for 3 seconds
input_text
Text input dialog - prompts user for text input
message_box
Simple message box - blocks until user interaction or timeout
message_box_async
Async version of message_box for use in async contexts
message_box_ex
Enhanced message box with full configuration options
message_box_ex_async
Async version of message_box_ex
message_box_with_type
Example usage of the --type flag.
notify
Simple notification - shows message and auto-closes
notify_async
Async version of notify
select_file
File selection dialog - prompts user to select a file
warn
Quick warning message - shows for 5 seconds