Added PySimpleGUIQt as the secondary (commented out) import

This commit is contained in:
PySimpleGUI 2020-07-29 10:21:02 -04:00
parent b5c0bd735d
commit 102e61cdab
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import PySimpleGUI as sg import PySimpleGUI as sg
# import PySimpleGUIQt as sg
""" """
Demo - Multiple layouts in a single window that are swapped in and out Demo - Multiple layouts in a single window that are swapped in and out
@ -20,7 +21,7 @@ layout2 = [[sg.Text('This is layout 2')],
[sg.Input(key='-IN2-')]] [sg.Input(key='-IN2-')]]
layout3 = [[sg.Text('This is layout 3 - It is all Radio Buttons')], layout3 = [[sg.Text('This is layout 3 - It is all Radio Buttons')],
*[[sg.R(f'Radio {i}', 1)] for i in range(8)]] *[[sg.Radio(f'Radio {i}', 1)] for i in range(8)]]
# ----------- Create actual layout using Columns and a row of Buttons # ----------- Create actual layout using Columns and a row of Buttons
layout = [[sg.Column(layout1, key='-COL1-'), sg.Column(layout2, visible=False, key='-COL2-'), sg.Column(layout3, visible=False, key='-COL3-')], layout = [[sg.Column(layout1, key='-COL1-'), sg.Column(layout2, visible=False, key='-COL2-'), sg.Column(layout3, visible=False, key='-COL3-')],