Popup: tiny popup with customizable content

Popup: tiny popup with customizable content

class pymt.ui.widgets.composed.popup.MTPopup(**kwargs)

Bases: pymt.ui.widgets.scatter.MTScatterWidget

Popup with customizable content.

Parameters :
show_cancel: bool, default to True

Show/hide the cancel button

label_cancel: str, default to ‘Cancel’

Change the label of cancel button

label_submit: str, default to ‘Ok’

Change the label of submit button

title: str, default to ‘PyMT popup’

Title of the popup (if None, no title will be added.)

exit_on_submit: bool, default to ‘True’

Title of the popup (if None, no title will be added.)

Events :
on_submit

Fired when the popup submit button is pressed. In default behavior, the widget remove himself from parent.

on_cancel

Fired when the popup cancel button is pressed. In default behavior, the widget remove himself from parent.

Previous topic

ModalPopup: a simple popup that use modal window

Next topic

Tabs widget: widget that provide tabs (like tabbed notebook)

This Page