Sep-19-2019, 12:21 PM
I just started to use PySimpleGUI and need a kick start.
I have a menu_def with the pages I want to show. For each page I created a layoutPagex
I have for each layoutPagex a windowPagex.
Basically something like:
1. How can I get a flow logic into that? Open only that page I select, and close the current page, so that only the last page will be displayed.
2. I want to add a logo in the Title
3. I want to use a camera picture. The user should be able to set some parameters of the camera, like brightness, ... with a slider and the camera picture should show the effect directly.
Can you guide me to a solution, please.
I have a menu_def with the pages I want to show. For each page I created a layoutPagex
I have for each layoutPagex a windowPagex.
Basically something like:
menu_def = [.... layoutStart = [... layoutCamera = [... layout.... windowStart = sg.Window('headline', layoutStart, default_element_size=(40, 1), grab_anywhere=False) eventStart, valuesStart = windowStart.Read() sg.Popup('Title', 'The results of the window.', 'The button clicked was "{}"'.format(eventStart), 'The values are', valuesStart) windowCamera = sg.Window('headline', layoutCamera, default_element_size=(40, 1), grab_anywhere=False) eventCamera, valuesCamera = windowCamera.Read() sg.Popup('Title', 'The results of the window.', 'The button clicked was "{}"'.format(eventCamera), 'The values are', valuesCamera) window... event... sg.Popup ...It doesn't matter which menu item I select, I just get the next window in the list.
1. How can I get a flow logic into that? Open only that page I select, and close the current page, so that only the last page will be displayed.
2. I want to add a logo in the Title
3. I want to use a camera picture. The user should be able to set some parameters of the camera, like brightness, ... with a slider and the camera picture should show the effect directly.
Can you guide me to a solution, please.