Module dialog

Source
Expand description

Dialog widgets

Structs§

FileChooser
FLTK’s own FileChooser. Which differs for the Native NativeFileChooser Example:
FileChooserType
The types of FileChooser
HelpDialog
Creates a help dialog
NativeFileChooser
FLTK’s NativeFileChooser
NativeFileChooserOptions
Defines the File dialog options, which can be set using the set_option() method.

Enums§

BeepType
Defines the type of beep to be passed to the beep function
ColorMode
Color modes to be used with the color chooser
NativeFileChooserAction
Rusult of try_show
NativeFileChooserType
Defines the type of dialog, which can be changed dynamically using the set_type() method

Functions§

alert
Displays an alert box
beep
Emits a beep
choice
Displays a choice box with up to three choices. Closing the dialog returns None. Choosing a value returns its index from the arguments.
color_chooser
Spawns a color chooser dialog.
color_chooser_with_default
Spawns a color chooser dialog.
dir_chooser
Shows a directory chooser returning a String
file_chooser
Shows a file chooser returning a String. The pattern field takes the same argument the FileChooser::set_filter method. Example:
input
Displays an input box, which returns the inputted string. Can be used for gui io
message
Displays a message box
message_hotspot
Get whether hotspot is enabled for FLTK’s dialog boxes
message_icon
Get the frame holding the icon of FLTK’s dialog boxes
message_icon_label
Set the next dialog’s icon label
message_position
Set the next dialog’s position
message_set_font
Set the font and font size of FLTK’s dialog boxes
message_set_hotspot
Set whether hotspot is enabled for FLTK’s dialog boxes
message_title
Set the next dialog’s title
message_title_default
Set the default title for a dialog
password
Shows an input box, but with hidden string