New Recipes Toolbars, Explanation of the "Event Loop"

This commit is contained in:
MikeTheWatchGuy 2018-09-12 18:31:39 -04:00
parent 57396f3dc1
commit bb990fca05
4 changed files with 171 additions and 9 deletions

View file

@ -5,11 +5,11 @@ import PySimpleGUI as sg
"""
sg.SetOptions(element_padding=(0,0))
sg.ChangeLookAndFeel('Dark')
# sg.ChangeLookAndFeel('Dark')
# --- Define our "Big-Button-Spinner" compound element. Has 2 buttons and an input field --- #
NewSpinner = [sg.ReadFormButton('-', size=(4,1), font='Any 12'),
sg.In('0', size=(5,1), font='Any 14', justification='r', key='spin'),
sg.ReadFormButton('+', size=(4,1), font='Any 12')]
NewSpinner = [sg.ReadFormButton('-', size=(2,1), font='Any 12'),
sg.In('0', size=(2,1), font='Any 14', justification='r', key='spin'),
sg.ReadFormButton('+', size=(2,1), font='Any 12')]
# --- Define Window --- #
layout = [
[sg.Text('Spinner simulation')],