PySimpleGUI Snippets
Features
Snippet |
Content |
py-New |
Template Snippet |
py-Button |
sg.Button('Button') |
py-ButtonMenu |
sg.ButtonMenu('ButtonMenu') |
py-Canvas |
sg.Canvas(background_color=None,size=(None,None)) |
py-Checkbox |
sg.Checkbox('Checkbox') |
py-Column |
sg.Column(layout) |
py-Combo |
sg.Combo(values, default_value=None) |
py-Frame |
sg.Frame('title',layout) |
py-HSep |
sg.HSep(color=None, pad=None) |
py-Image |
sg.Image(source = 'None', size = (None,None)) |
py-Input |
sg.Input('Input, s=size') |
py-Listbox |
sg.Listbox(values=['value', 'value', 'value'], size=(None, None), no_scrollbar=True, s=(None,None)) |
py-Menu |
sg.Menu([['File', ['Exit']], ['Edit', ['Edit Me', ]]]) |
py-MenubarCustom |
sg.MenubarCustom([['File', ['Exit']], ['Edit', ['Edit Me', ]]]) |
py-Multiline |
sg.Multiline(s=(None,None)) |
py-OptionMenu |
sg.OptionMenu(['OptionMenu',],s=(None,None)) |
py-Output |
sg.Output(s=(None,None) |
py-ProgressBar |
sg.ProgressBar(maxvalue, orientation='h', s=(None,None)) |
py-Radio |
sg.Radio('text','group_id') |
py-Sizer |
sg.Sizer(h_pixels,v_pixels) |
py-Slider |
sg.Slider((None,None), orientation='h', s=(None,None)) |
py-Spin |
sg.Spin('Spin',s=(None,None)) |
py-StatusBar |
sg.StatusBar('StatusBar') |
py-Table |
sg.Table([[1,2], [3,4]], ['Col 1','Col 2'], num_rows=rows) |
py-Text |
sg.Text('Text') |
py-Titlebar |
sg.Titlebar(title = 'title') |
py-Theme |
sg.theme('Theme') |
py-VSep |
sg.VSep(color=None, pad=None) |
Release Notes
3.0.0
- Added 12 new snippets.
- New Snippet Pattern
2.0.0
10 new snippets, with descriptions.
1.0.0
Initial release of PySimpleGUI Snippets
Credits
Enjoy!
| |