Skip to content

Popup

The popup library can be used to open a popup window, it can be an error, warning or info.

To import use the following code:

from tailwindall.popup import *

or

import tailwindall.popup as popup

Usage

Info

You can create an info box in 2 different ways

Fancy

To create a fancy message box use the following code:

from tailwindall.popup import InfoPopup
InfoPopup("Title of the Popup (at the title bar of the window)", "Popup content", "Popup header (in the window)").display()
Arguments
ArgumentTypeDescriptionDefaultSee Also
titlestrThe title of the popup window""
messagestrThe text of the popup window""
headerstrThe header of the popup window""
message_fonttuple[str, int](font_name, font_size)("FiraCode Nerd Font", 15)
header_fonttuple[str, int](font_name, font_size)("FiraCode Nerd Font", 20)

Simple

To create a simple message box use the following code:

from tailwindall.popup import InfoBox
InfoBox("Title of the Popup (at the title bar of the window)", "Popup content")
Arguments
ArgumentTypeDescriptionDefaultSee Also
titlestrThe title of the popup window""
messagestrThe text of the popup window""

Warning

You can create a warning box using the following code:

from tailwindall.popup import WarningBox
WarningBox("Title of the Popup (at the title bar of the window)", "Popup content")

Arguments

ArgumentTypeDescriptionDefaultSee Also
titlestrThe title of the popup window""
messagestrThe text of the popup window""

Error

You can create an error box using the following code:

from tailwindall.popup import ErrorBox
ErrorBox("Title of the Popup (at the title bar of the window)", "Popup content")

Arguments

ArgumentTypeDescriptionDefaultSee Also
titlestrThe title of the popup window""
messagestrThe text of the popup window""