MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / popup_non_blocking

Function popup_non_blocking

PySimpleGUI/PySimpleGUI.py:20687–20738  ·  view source on GitHub ↗

Show Popup window and immediately return (does not block) :param *args: Variable number of items to display :type *args: (Any) :param title: Title to display in the window. :type title: (str) :param button_type:

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

Source from the content-addressed store, hash-verified

20685
20686# --------------------------- popup_non_blocking ---------------------------
20687def popup_non_blocking(*args, title=None, button_type=POPUP_BUTTONS_OK, button_color=None, background_color=None,
20688 text_color=None, auto_close=False, auto_close_duration=None, non_blocking=True, icon=None,
20689 line_width=None, font=None, no_titlebar=False, grab_anywhere=False, keep_on_top=None,
20690 location=(None, None), relative_location=(None, None), image=None, modal=False):
20691 """
20692 Show Popup window and immediately return (does not block)
20693
20694 :param *args: Variable number of items to display
20695 :type *args: (Any)
20696 :param title: Title to display in the window.
20697 :type title: (str)
20698 :param button_type: Determines which pre-defined buttons will be shown (Default value = POPUP_BUTTONS_OK).
20699 :type button_type: (int)
20700 :param button_color: button color (foreground, background)
20701 :type button_color: (str, str) | str
20702 :param background_color: color of background
20703 :type background_color: (str)
20704 :param text_color: color of the text
20705 :type text_color: (str)
20706 :param auto_close: if True window will close itself
20707 :type auto_close: (bool)
20708 :param auto_close_duration: Older versions only accept int. Time in seconds until window will close
20709 :type auto_close_duration: int | float
20710 :param non_blocking: if True the call will immediately return rather than waiting on user input
20711 :type non_blocking: (bool)
20712 :param icon: filename or base64 string to be used for the window's icon
20713 :type icon: bytes | str
20714 :param line_width: Width of lines in characters
20715 :type line_width: (int)
20716 :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
20717 :type font: (str or (str, int[, str]) or None)
20718 :param no_titlebar: If True no titlebar will be shown
20719 :type no_titlebar: (bool)
20720 :param grab_anywhere: If True: can grab anywhere to move the window (Default = False)
20721 :type grab_anywhere: (bool)
20722 :param location: Location of upper left corner of the window
20723 :type location: (int, int)
20724 :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.
20725 :type relative_location: (int, int)
20726 :param image: Image to include at the top of the popup window
20727 :type image: (str) or (bytes)
20728 :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
20729 :type modal: bool
20730 :return: Reason for popup closing
20731 :rtype: str | None
20732 """
20733
20734 return popup(*args, title=title, button_color=button_color, background_color=background_color, text_color=text_color,
20735 button_type=button_type,
20736 auto_close=auto_close, auto_close_duration=auto_close_duration, non_blocking=non_blocking, icon=icon,
20737 line_width=line_width,
20738 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)
20739
20740
20741# --------------------------- popup_quick - a NonBlocking, Self-closing Popup ---------------------------

Callers 1

mainFunction · 0.85

Calls 1

popupFunction · 0.70

Tested by

no test coverage detected