Release 2.30 refresh of readme and demos
Lots of forms went borderless so important that 2.30 be released.
This commit is contained in:
parent
bc00740d03
commit
32a9dc79ce
8 changed files with 99 additions and 81 deletions
|
@ -4,7 +4,6 @@ def TightLayout():
|
|||
Turn off padding in order to get a really tight looking layout.
|
||||
"""
|
||||
import PySimpleGUI as sg
|
||||
|
||||
sg.ChangeLookAndFeel('Dark')
|
||||
sg.SetOptions(element_padding=(0, 0))
|
||||
layout = [[sg.T('User:', pad=((3, 0), 0)), sg.OptionMenu(values=('User 1', 'User 2'), size=(20, 1)),
|
||||
|
@ -13,13 +12,10 @@ def TightLayout():
|
|||
sg.T('1', size=(8, 1))],
|
||||
[sg.T('Notes:', pad=((3, 0), 0)), sg.In(size=(44, 1), background_color='white', text_color='black')],
|
||||
[sg.ReadFormButton('Start', button_color=('white', 'black')),
|
||||
sg.ReadFormButton('Stop', button_color=('white', 'black')),
|
||||
sg.ReadFormButton('Stop', button_color=('gray50', 'black')),
|
||||
sg.ReadFormButton('Reset', button_color=('white', '#9B0023')),
|
||||
sg.ReadFormButton('Submit', button_color=('white', 'springgreen4')),
|
||||
sg.SimpleButton('Exit', button_color=('white', '#00406B')),
|
||||
]
|
||||
]
|
||||
|
||||
sg.ReadFormButton('Submit', button_color=('gray60', 'springgreen4')),
|
||||
sg.SimpleButton('Exit', button_color=('white', '#00406B'))]]
|
||||
form = sg.FlexForm("Time Tracker", default_element_size=(12, 1), text_justification='r', auto_size_text=False,
|
||||
auto_size_buttons=False, no_titlebar=True,
|
||||
default_button_element_size=(12, 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue