gtk.alert_dialog
Module for [AlertDialog] class
Types 3
A gtk.alert_dialog.AlertDialog object collects the arguments that are needed to present a message to the user.
The message is shown with the gtk.alert_dialog.AlertDialog.choose function. This API follows the GIO async pattern, and the result can be obtained by calling gtk.alert_dialog.AlertDialog.chooseFinish.
If you don't need to wait for a button to be clicked, you can use gtk.alert_dialog.AlertDialog.show.
Methods
AlertDialogGidBuilder builder() static nothrowGet builder for [gtk.alert_dialog.AlertDialog] Returns: New builder objectint cancelButton() @property nothrowGet `cancelButton` property. Returns: This property determines what happens when the Escape key is pressed while the alert is shown.void cancelButton(int propval) @property nothrowSet `cancelButton` property. Params: propval = This property determines what happens when the Escape key is pressed while the alert is shown.int defaultButton() @property nothrowGet `defaultButton` property. Returns: This property determines what happens when the Return key is pressed while the alert is shown.void defaultButton(int propval) @property nothrowSet `defaultButton` property. Params: propval = This property determines what happens when the Return key is pressed while the alert is shown.void detail(string propval) @property nothrowSet `detail` property. Params: propval = The detail text for the alert.void message(string propval) @property nothrowSet `message` property. Params: propval = The message for the alert.void modal(bool propval) @property nothrowSet `modal` property. Params: propval = Whether the alert is modal.void choose(gtk.window.Window parent = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowThis function shows the alert to the user.int chooseFinish(gio.async_result.AsyncResult result)Finishes the [gtk.alert_dialog.AlertDialog.choose] call and returns the index of the button that was clicked.int getCancelButton() nothrowReturns the index of the cancel button. Returns: the index of the cancel button, or -1int getDefaultButton() nothrowReturns the index of the default button. Returns: the index of the default button, or -1string getDetail() nothrowReturns the detail text that will be shown in the alert. Returns: the detail textstring getMessage() nothrowReturns the message that will be shown in the alert. Returns: the messagebool getModal() nothrowReturns whether the alert blocks interaction with the parent window while it is presented. Returns: `TRUE` if the alert is modalvoid setModal(bool modal) nothrowSets whether the alert blocks interaction with the parent window while it is presented.Fluent builder implementation template for gtk.alert_dialog.AlertDialog
Methods
T cancelButton(int propval) nothrowSet `cancelButton` property. Params: propval = This property determines what happens when the Escape key is pressed while the alert is shown.T defaultButton(int propval) nothrowSet `defaultButton` property. Params: propval = This property determines what happens when the Return key is pressed while the alert is shown.T detail(string propval) nothrowSet `detail` property. Params: propval = The detail text for the alert. Returns: Builder instance for fluent chainingT message(string propval) nothrowSet `message` property. Params: propval = The message for the alert. Returns: Builder instance for fluent chainingT modal(bool propval) nothrowSet `modal` property. Params: propval = Whether the alert is modal. Returns: Builder instance for fluent chainingFluent builder for gtk.alert_dialog.AlertDialog
Methods