11# Application
22
3- > Auto-generated documentation for [ cli2gui.application.application] ( ../../../../cli2gui/application/application.py ) module.
3+ [ Cli2gui Index] ( ../../README.md#cli2gui-index ) /
4+ [ Cli2gui] ( ../index.md#cli2gui ) /
5+ [ Application] ( ./index.md#application ) /
6+ Application
47
5- Application here uses PySimpleGUI .
8+ > Auto-generated documentation for [ cli2gui.application.application ] ( ../../../../cli2gui/application/application.py ) module .
69
7- - [ Cli2gui ] ( ../../README.md#cli2gui-index ) / [ Modules ] ( ../../MODULES.md#cli2gui-modules ) / [ Cli2gui ] ( ../index.md#cli2gui ) / [ Application] ( index.md #application) / Application
8- - [ addItemsAndGroups] ( #additemsandgroups )
9- - [ createLayout] ( #createlayout )
10- - [ generatePopup] ( #generatepopup )
11- - [ run] ( #run )
12- - [ setBase24Theme] ( #setbase24theme )
13- - [ setupWidgets] ( #setupwidgets )
14- - [ themeFromFile] ( #themefromfile )
10+ - [ Application] ( #application )
11+ - [ addItemsAndGroups] ( #additemsandgroups )
12+ - [ createLayout] ( #createlayout )
13+ - [ generatePopup] ( #generatepopup )
14+ - [ run] ( #run )
15+ - [ setBase24Theme] ( #setbase24theme )
16+ - [ setupWidgets] ( #setupwidgets )
17+ - [ themeFromFile] ( #themefromfile )
1518
1619## addItemsAndGroups
1720
18- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L165 )
19-
20- ``` python
21- def addItemsAndGroups (
22- section : c2gtypes.Group,
23- argConstruct : list[list[Element]],
24- widgets : Widgets,
25- ):
26- ```
21+ [ Show source in application.py:165] ( ../../../../cli2gui/application/application.py#L165 )
2722
2823Add arg_items and groups to the argConstruct list.
2924
@@ -40,19 +35,21 @@ argConstruct
4035
4136- ` list ` - updated argConstruct
4237
43- ## createLayout
44-
45- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L298 )
38+ #### Signature
4639
4740``` python
48- def createLayout (
49- buildSpec : c2gtypes.FullBuildSpec,
50- widgets : Widgets,
51- pySimpleGui : Any,
52- menu : str | list[str ],
53- ) -> list[list[Element]]:
41+ def addItemsAndGroups (
42+ section : c2gtypes.Group, argConstruct : list[list[Element]], widgets : Widgets
43+ ):
44+ ...
5445```
5546
47+
48+
49+ ## createLayout
50+
51+ [ Show source in application.py:298] ( ../../../../cli2gui/application/application.py#L298 )
52+
5653Create the pysimplegui layout from the build spec.
5754
5855#### Arguments
@@ -66,19 +63,24 @@ Create the pysimplegui layout from the build spec.
6663
6764- ` list[list[Element]] ` - list of widgets (layout list)
6865
69- ## generatePopup
70-
71- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L229 )
66+ #### Signature
7267
7368``` python
74- def generatePopup (
69+ def createLayout (
7570 buildSpec : c2gtypes.FullBuildSpec,
76- values : dict[Any, Any] | list[Any],
7771 widgets : Widgets,
7872 pySimpleGui : Any,
79- ) -> Window:
73+ menu : str | list[str ],
74+ ) -> list[list[Element]]:
75+ ...
8076```
8177
78+
79+
80+ ## generatePopup
81+
82+ [ Show source in application.py:229] ( ../../../../cli2gui/application/application.py#L229 )
83+
8284Create the popup window.
8385
8486#### Arguments
@@ -93,33 +95,44 @@ as the menu
9395
9496- ` pySimpleGui.Window ` - A PySimpleGui Window
9597
96- ## run
97-
98- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L361 )
98+ #### Signature
9999
100100``` python
101- def run (buildSpec : c2gtypes.FullBuildSpec):
101+ def generatePopup (
102+ buildSpec : c2gtypes.FullBuildSpec,
103+ values : dict[Any, Any] | list[Any],
104+ widgets : Widgets,
105+ pySimpleGui : Any,
106+ ) -> Window:
107+ ...
102108```
103109
110+
111+
112+ ## run
113+
114+ [ Show source in application.py:361] ( ../../../../cli2gui/application/application.py#L361 )
115+
104116Main entry point for the application.
105117
106118#### Arguments
107119
108120- ` buildSpec ` * c2gtypes.FullBuildSpec* - args that customise the application such as the theme
109121or the function to run
110122
111- ## setBase24Theme
112-
113- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L36 )
123+ #### Signature
114124
115125``` python
116- def setBase24Theme (
117- theme : str | list[str ],
118- darkTheme : str | list[str ],
119- pySimpleGui : Any,
120- ) -> None :
126+ def run (buildSpec : c2gtypes.FullBuildSpec):
127+ ...
121128```
122129
130+
131+
132+ ## setBase24Theme
133+
134+ [ Show source in application.py:36] ( ../../../../cli2gui/application/application.py#L36 )
135+
123136Set the base24 theme to the application.
124137
125138#### Arguments
@@ -128,18 +141,21 @@ theme (Union[str, list[str]]): the light theme
128141darkTheme (Union[ str, list[ str]] ): the dark theme
129142- ` pySimpleGui ` * Any* - pysimplegui module
130143
131- ## setupWidgets
132-
133- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L125 )
144+ #### Signature
134145
135146``` python
136- def setupWidgets (
137- gui : str ,
138- sizes : dict[str , Any],
139- pySimpleGui : Any,
140- ) -> Widgets:
147+ def setBase24Theme (
148+ theme : str | list[str ], darkTheme : str | list[str ], pySimpleGui : Any
149+ ) -> None :
150+ ...
141151```
142152
153+
154+
155+ ## setupWidgets
156+
157+ [ Show source in application.py:125] ( ../../../../cli2gui/application/application.py#L125 )
158+
143159Set the widget sizes to the application.
144160
145161#### Arguments
@@ -152,14 +168,19 @@ sizes (Union[dict[str, Any]]): widget sizes
152168
153169- ` Widgets ` - widgets object all set up nicely
154170
155- ## themeFromFile
156-
157- [[ find in source code]] ( ../../../../cli2gui/application/application.py#L23 )
171+ #### Signature
158172
159173``` python
160- def themeFromFile (themeFile : str ) -> list[str ]:
174+ def setupWidgets (gui : str , sizes : dict[str , Any], pySimpleGui : Any) -> Widgets:
175+ ...
161176```
162177
178+
179+
180+ ## themeFromFile
181+
182+ [ Show source in application.py:23] ( ../../../../cli2gui/application/application.py#L23 )
183+
163184Set the base24 theme from a base24 scheme.yaml to the application.
164185
165186#### Arguments
@@ -169,3 +190,12 @@ Set the base24 theme from a base24 scheme.yaml to the application.
169190#### Returns
170191
171192- ` list[str] ` - theme to set
193+
194+ #### Signature
195+
196+ ``` python
197+ def themeFromFile (themeFile : str ) -> list[str ]:
198+ ...
199+ ```
200+
201+
0 commit comments