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

Function popup_no_titlebar

PySimpleGUI/PySimpleGUI.py:20853–20902  ·  view source on GitHub ↗

Display a Popup without a titlebar. Enables grab anywhere so you can move it :param *args: Variable number of items to display :type *args: (Any) :param title: Title to display in the window. :type title: (str) :pa

(*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=False, icon=None,
                      line_width=None, font=None, grab_anywhere=True, keep_on_top=None, location=(None, None), relative_location=(None, None), image=None, modal=True)

Source from the content-addressed store, hash-verified

20851
20852# --------------------------- PopupNoTitlebar ---------------------------
20853def popup_no_titlebar(*args, title=None, button_type=POPUP_BUTTONS_OK, button_color=None, background_color=None,
20854 text_color=None, auto_close=False, auto_close_duration=None, non_blocking=False, icon=None,
20855 line_width=None, font=None, grab_anywhere=True, keep_on_top=None, location=(None, None), relative_location=(None, None), image=None, modal=True):
20856 """
20857 Display a Popup without a titlebar. Enables grab anywhere so you can move it
20858
20859 :param *args: Variable number of items to display
20860 :type *args: (Any)
20861 :param title: Title to display in the window.
20862 :type title: (str)
20863 :param button_type: Determines which pre-defined buttons will be shown (Default value = POPUP_BUTTONS_OK).
20864 :type button_type: (int)
20865 :param button_color: button color (foreground, background)
20866 :type button_color: (str, str) | str
20867 :param background_color: color of background
20868 :type background_color: (str)
20869 :param text_color: color of the text
20870 :type text_color: (str)
20871 :param auto_close: if True window will close itself
20872 :type auto_close: (bool)
20873 :param auto_close_duration: Older versions only accept int. Time in seconds until window will close
20874 :type auto_close_duration: int | float
20875 :param non_blocking: if True the call will immediately return rather than waiting on user input
20876 :type non_blocking: (bool)
20877 :param icon: filename or base64 string to be used for the window's icon
20878 :type icon: bytes | str
20879 :param line_width: Width of lines in characters
20880 :type line_width: (int)
20881 :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
20882 :type font: (str or (str, int[, str]) or None)
20883 :param grab_anywhere: If True: can grab anywhere to move the window (Default = False)
20884 :type grab_anywhere: (bool)
20885 :param keep_on_top: If True the window will remain above all current windows
20886 :type keep_on_top: (bool)
20887 :param location: Location of upper left corner of the window
20888 :type location: (int, int)
20889 :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.
20890 :type relative_location: (int, int)
20891 :param image: Image to include at the top of the popup window
20892 :type image: (str) or (bytes)
20893 :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 = True
20894 :type modal: bool
20895 :return: Returns text of the button that was pressed. None will be returned if user closed window with X
20896 :rtype: str | None | TIMEOUT_KEY
20897 """
20898 return popup(*args, title=title, button_color=button_color, background_color=background_color, text_color=text_color,
20899 button_type=button_type,
20900 auto_close=auto_close, auto_close_duration=auto_close_duration, non_blocking=non_blocking, icon=icon,
20901 line_width=line_width,
20902 font=font, no_titlebar=True, grab_anywhere=grab_anywhere, keep_on_top=keep_on_top, location=location, relative_location=relative_location, image=image, modal=modal)
20903
20904
20905# --------------------------- PopupAutoClose ---------------------------

Callers 1

mainFunction · 0.85

Calls 1

popupFunction · 0.70

Tested by

no test coverage detected