From 9ec0f18607259ef2b9590ccaf43338659faf181e Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 24 May 2021 14:58:44 -0400 Subject: [PATCH] New simple Sudoku puzzle demo --- DemoPrograms/Demo_Sudoku_1_Line.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 DemoPrograms/Demo_Sudoku_1_Line.py diff --git a/DemoPrograms/Demo_Sudoku_1_Line.py b/DemoPrograms/Demo_Sudoku_1_Line.py new file mode 100644 index 00000000..093765df --- /dev/null +++ b/DemoPrograms/Demo_Sudoku_1_Line.py @@ -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()