Merge pull request #4318 from PySimpleGUI/Dev-latest

Dev latest
This commit is contained in:
PySimpleGUI 2021-05-24 15:01:45 -04:00 committed by GitHub
commit 1dbb1b2d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -17,9 +17,8 @@ import PySimpleGUI as sg
# ----- Make the window ----- # ----- Make the window -----
window = sg.Window('Postit', [[sg.T('Postit Note', text_color='black', background_color='#FFFF88')], window = sg.Window('Postit', [[sg.T('Postit Note', text_color='black', background_color='#FFFF88')],
[sg.ML(size=(30, 5), background_color='#FFFF88', no_scrollbar=True, k='-ML-', border_width=0, expand_y=True, expand_x=True), [sg.ML(size=(30,5), background_color='#FFFF88', no_scrollbar=True, k='-ML-', border_width=0, expand_y=True, expand_x=True), sg.Sizegrip(background_color='#FFFF88')]],
sg.Sizegrip(background_color='#FFFF88')]], no_titlebar=True, grab_anywhere=True, margins=(0,0), background_color='#FFFF88', element_padding=(0,0),
no_titlebar=True, grab_anywhere=True, margins=(0, 0), background_color='#FFFF88', element_padding=(0, 0),
right_click_menu=sg.MENU_RIGHT_CLICK_EXIT, keep_on_top=True, font='_ 20', resizable=True, finalize=True) right_click_menu=sg.MENU_RIGHT_CLICK_EXIT, keep_on_top=True, font='_ 20', resizable=True, finalize=True)
# ----- Make sure it doesn't get any smaller than it is initially ----- # ----- Make sure it doesn't get any smaller than it is initially -----

View File

@ -0,0 +1,13 @@
import PySimpleGUI as sg
"""
Demo 1-line Sudoku Board
A silly display of what 1 line of PySimpleGUI is capable of producing by
utilizing the power of Python. The power isn't a PySimpleGUI trick.
The power is Python List Comprehensions and using them in your layout.
Copyright 2021 PySimpleGUI
"""
sg.Window('Sudoku', [[sg.Frame('', [[sg.Input(justification='r', size=(3,1)) for col in range(3)] for row in range(3)]) for frame_col in range(3)] for frame_row in range(3)], use_custom_titlebar=True).read()