Skip to content

Instantly share code, notes, and snippets.

@MikeTheWatchGuy
Last active September 18, 2018 15:50
Show Gist options
  • Save MikeTheWatchGuy/2ba11b1ef55e559e365b8ae862be1eff to your computer and use it in GitHub Desktop.
Save MikeTheWatchGuy/2ba11b1ef55e559e365b8ae862be1eff to your computer and use it in GitHub Desktop.
Sample Launcher GUI for StackOverlow
import PySimpleGUI as sg
sg.SetOptions(button_color=sg.COLOR_SYSTEM_DEFAULT)
frame = [[sg.Radio('This ARG', group_id=1)],
[sg.Radio('That ARG', group_id=1)],
[sg.Radio('Both ARG', group_id=1)]]
col2 = [[sg.SimpleButton('Clear')],
[sg.SimpleButton('Go!')]]
layout = [[sg.Text('EXE to run'), sg.In(), sg.FolderBrowse()],
[sg.Text('Our Input Parameters')],
[sg.In(size=(65,1))],
[sg.Column([[sg.Frame('Options', frame)]]), sg.Column(col2)],
[sg.Frame('Status',[[sg.Output(size=(65,8))]])]]
form = sg.FlexForm('Program GUI', auto_size_buttons=False)
button, values = form.LayoutAndRead(layout)
@MikeTheWatchGuy
Copy link
Author

MikeTheWatchGuy commented Sep 17, 2018

This code produces this GUI Window
duplicated stackoverflow gui

@MikeTheWatchGuy
Copy link
Author

The idea was to duplicate this layout produced in Visual Studio
thestart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment