Cli2gui Index / Cli2gui / Gui / PySimpleGUIWrapper
Auto-generated documentation for cli2gui.gui.pysimplegui_wrapper module.
- PySimpleGUIWrapper
- PySimpleGUIWrapper
- PySimpleGUIWrapper()._button
- PySimpleGUIWrapper()._check
- PySimpleGUIWrapper()._dropdown
- PySimpleGUIWrapper()._fileBrowser
- PySimpleGUIWrapper()._helpArgHelp
- PySimpleGUIWrapper()._helpArgName
- PySimpleGUIWrapper()._helpArgNameAndHelp
- PySimpleGUIWrapper()._helpCounterWidget
- PySimpleGUIWrapper()._helpDropdownWidget
- PySimpleGUIWrapper()._helpFileWidget
- PySimpleGUIWrapper()._helpFlagWidget
- PySimpleGUIWrapper()._helpTextWidget
- PySimpleGUIWrapper()._inputText
- PySimpleGUIWrapper()._label
- PySimpleGUIWrapper()._spin
- PySimpleGUIWrapper()._title
- PySimpleGUIWrapper().addItemsAndGroups
- PySimpleGUIWrapper().addWidgetFromItem
- PySimpleGUIWrapper().createLayout
- PySimpleGUIWrapper().generatePopup
- PySimpleGUIWrapper().getImgData
- PySimpleGUIWrapper().main
- PySimpleGUIWrapper
Show source in pysimplegui_wrapper.py:16
Wrapper class for PySimpleGUI.
class PySimpleGUIWrapper(AbstractGUI):
def __init__(self, base24Theme: list[str], psg_lib: str) -> None: ...
Show source in pysimplegui_wrapper.py:109
Return a button.
def _button(self, text: str) -> Any: ...
Show source in pysimplegui_wrapper.py:99
Return a checkbox.
def _check(self, key: str, default: str | None = None) -> Any: ...
Show source in pysimplegui_wrapper.py:130
Return a dropdown.
def _dropdown(self, key: str, argItems: list[str]) -> Any: ...
Show source in pysimplegui_wrapper.py:139
Return a fileBrowser button and field.
def _fileBrowser(
self,
key: str,
default: str | None = None,
_type: ItemType = ItemType.File,
additional_properties: dict | None = None,
) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:188
Return a label for the arg help text.
def _helpArgHelp(self, helpText: str) -> Any: ...
Show source in pysimplegui_wrapper.py:184
Return a label for the arg name.
def _helpArgName(self, displayName: str, commands: list[str]) -> Any: ...
Show source in pysimplegui_wrapper.py:192
Return a column containing the argument name and help text.
def _helpArgNameAndHelp(
self, commands: list[str], helpText: str, displayName: str
) -> Any: ...
Show source in pysimplegui_wrapper.py:243
Return a set of self that make up an arg with text.
def _helpCounterWidget(self, item: Item) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:268
Return a set of self that make up an arg with a choice.
def _helpDropdownWidget(self, item: Item) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:255
Return a set of self that make up an arg with a file.
def _helpFileWidget(self, item: Item) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:218
Return a set of self that make up an arg with true/ false.
def _helpFlagWidget(self, item: Item) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:230
Return a set of self that make up an arg with text.
def _helpTextWidget(self, item: Item) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:78
Return an input text field.
def _inputText(self, key: str, default: str | None = None) -> Any: ...
Show source in pysimplegui_wrapper.py:118
Return a label.
def _label(self, text: str, font: int = 11) -> Any: ...
Show source in pysimplegui_wrapper.py:88
Return an input text field.
def _spin(self, key: str, default: str | None = None) -> Any: ...
Show source in pysimplegui_wrapper.py:199
Return a set of self that make up the application header.
def _title(self, text: str, image: str = "") -> list[Any]: ...
Show source in pysimplegui_wrapper.py:371
Items and groups and return a list of psg Elements.
section
Group - section with a name to display and items
Type: list[list[Element]] updated argConstruct
def addItemsAndGroups(self, section: Group) -> list[list[Any]]: ...
Show source in pysimplegui_wrapper.py:287
Select a widget based on the item type.
item
Item - the item
def addWidgetFromItem(self, item: Item) -> list[Any]: ...
Show source in pysimplegui_wrapper.py:396
Create the pysimplegui layout from the build spec.
buildSpec
FullBuildSpec - build spec containing widget :param str | list[str] menu: menu definition. containing menu keys
Type: list[list[Any]] list of self (layout list)
def createLayout(
self, buildSpec: FullBuildSpec, menu: str | list[str]
) -> list[list[Any]]: ...
Show source in pysimplegui_wrapper.py:311
Create the popup window.
buildSpec
FullBuildSpec - [description] values (Union[dict[Any, Any]): Returned when a button is clicked. Such as the menu
Window
- A PySimpleGui Window
def generatePopup(
self, buildSpec: FullBuildSpec, values: dict[Any, Any] | list[Any]
) -> Any: ...
Show source in pysimplegui_wrapper.py:508
Generate image data using PIL.
def getImgData(self, imagePath: str, first: bool = False) -> bytes: ...
Show source in pysimplegui_wrapper.py:463
Run the gui (psg) with a given buildSpec, quit_callback, and run_callback.
buildSpec
FullBuildSpec - Full cli parse/ build spec :param Callable[[], None] quit_callback: generic callable used to quit :param Callable[[dict[str, Any]], None] run_callback: generic callable used to run
def main(
self,
buildSpec: FullBuildSpec,
quit_callback: Callable[[], None],
run_callback: Callable[[dict[str, Any]], None],
) -> None: ...