MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / popup_quick_message

Function popup_quick_message

PySimpleGUI/PySimpleGUI.py:20798–20849  ·  view source on GitHub ↗

Show Popup window with no titlebar, doesn't block, and auto closes itself. :param *args: Variable number of items to display :type *args: (Any) :param title: Title to display in the window. :type title: (str) :param

(*args, title=None, button_type=POPUP_BUTTONS_NO_BUTTONS, button_color=None, background_color=None,
                        text_color=None, auto_close=True, auto_close_duration=2, non_blocking=True, icon=None, line_width=None,
                        font=None, no_titlebar=True, grab_anywhere=False, keep_on_top=True, location=(None, None), relative_location=(None, None), image=None, modal=False)

Source from the content-addressed store, hash-verified

20796
20797# --------------------------- popup_quick_message - a NonBlocking, Self-closing Popup with no titlebar and no buttons ---------------------------
20798def popup_quick_message(*args, title=None, button_type=POPUP_BUTTONS_NO_BUTTONS, button_color=None, background_color=None,
20799 text_color=None, auto_close=True, auto_close_duration=2, non_blocking=True, icon=None, line_width=None,
20800 font=None, no_titlebar=True, grab_anywhere=False, keep_on_top=True, location=(None, None), relative_location=(None, None), image=None, modal=False):
20801 """
20802 Show Popup window with no titlebar, doesn't block, and auto closes itself.
20803
20804 :param *args: Variable number of items to display
20805 :type *args: (Any)
20806 :param title: Title to display in the window.
20807 :type title: (str)
20808 :param button_type: Determines which pre-defined buttons will be shown (Default value = POPUP_BUTTONS_OK).
20809 :type button_type: (int)
20810 :param button_color: button color (foreground, background)
20811 :type button_color: (str, str) | str
20812 :param keep_on_top: If True the window will remain above all current windows
20813 :type keep_on_top: (bool)
20814 :param background_color: color of background
20815 :type background_color: (str)
20816 :param text_color: color of the text
20817 :type text_color: (str)
20818 :param auto_close: if True window will close itself
20819 :type auto_close: (bool)
20820 :param auto_close_duration: Older versions only accept int. Time in seconds until window will close
20821 :type auto_close_duration: int | float
20822 :param non_blocking: if True the call will immediately return rather than waiting on user input
20823 :type non_blocking: (bool)
20824 :param icon: filename or base64 string to be used for the window's icon
20825 :type icon: bytes | str
20826 :param line_width: Width of lines in characters
20827 :type line_width: (int)
20828 :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
20829 :type font: (str or (str, int[, str]) or None)
20830 :param no_titlebar: If True no titlebar will be shown
20831 :type no_titlebar: (bool)
20832 :param grab_anywhere: If True: can grab anywhere to move the window (Default = False)
20833 :type grab_anywhere: (bool)
20834 :param location: Location of upper left corner of the window
20835 :type location: (int, int)
20836 :param relative_location: (x,y) location relative to the default location of the window, in pixels. Normally the window centers. This location is relative to the location the window would be created. Note they can be negative.
20837 :type relative_location: (int, int)
20838 :param image: Image to include at the top of the popup window
20839 :type image: (str) or (bytes)
20840 :param modal: If True then makes the popup will behave like a Modal window... all other windows are non-operational until this one is closed. Default = False
20841 :type modal: bool
20842 :return: Returns text of the button that was pressed. None will be returned if user closed window with X
20843 :rtype: str | None | TIMEOUT_KEY
20844 """
20845 return popup(*args, title=title, button_color=button_color, background_color=background_color, text_color=text_color,
20846 button_type=button_type,
20847 auto_close=auto_close, auto_close_duration=auto_close_duration, non_blocking=non_blocking, icon=icon,
20848 line_width=line_width,
20849 font=font, no_titlebar=no_titlebar, grab_anywhere=grab_anywhere, keep_on_top=keep_on_top, location=location, relative_location=relative_location, image=image, modal=modal)
20850
20851
20852# --------------------------- PopupNoTitlebar ---------------------------

Callers 9

readMethod · 0.85
theme_previewerFunction · 0.85
theme_previewer_swatchesFunction · 0.85
popup_get_folderFunction · 0.85
popup_get_fileFunction · 0.85
popup_get_textFunction · 0.85
_error_popup_with_codeFunction · 0.85
_choose_auto_watchesMethod · 0.85
upgrade_PySimpleGUI_guiFunction · 0.85

Calls 1

popupFunction · 0.70

Tested by

no test coverage detected