Skip to content

Commit 1dbb1b2

Browse files
authored
Merge pull request PySimpleGUI#4318 from PySimpleGUI/Dev-latest
Dev latest
2 parents 7dbdc26 + a845014 commit 1dbb1b2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

DemoPrograms/Demo_Desktop_Widget_Postit.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717

1818
# ----- Make the window -----
1919
window = sg.Window('Postit', [[sg.T('Postit Note', text_color='black', background_color='#FFFF88')],
20-
[sg.ML(size=(30, 5), background_color='#FFFF88', no_scrollbar=True, k='-ML-', border_width=0, expand_y=True, expand_x=True),
21-
sg.Sizegrip(background_color='#FFFF88')]],
22-
no_titlebar=True, grab_anywhere=True, margins=(0, 0), background_color='#FFFF88', element_padding=(0, 0),
20+
[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')]],
21+
no_titlebar=True, grab_anywhere=True, margins=(0,0), background_color='#FFFF88', element_padding=(0,0),
2322
right_click_menu=sg.MENU_RIGHT_CLICK_EXIT, keep_on_top=True, font='_ 20', resizable=True, finalize=True)
2423

2524
# ----- Make sure it doesn't get any smaller than it is initially -----

DemoPrograms/Demo_Sudoku_1_Line.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import PySimpleGUI as sg
2+
3+
"""
4+
Demo 1-line Sudoku Board
5+
6+
A silly display of what 1 line of PySimpleGUI is capable of producing by
7+
utilizing the power of Python. The power isn't a PySimpleGUI trick.
8+
The power is Python List Comprehensions and using them in your layout.
9+
10+
Copyright 2021 PySimpleGUI
11+
"""
12+
13+
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()

0 commit comments

Comments
 (0)