From 3113cc6d364cd060a8968fa4a16e724fd29ec6c3 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Fri, 24 Jun 2022 09:35:07 -0400 Subject: [PATCH] Addition of Window.set_size to SDK Call Reference doc --- docs/call reference.md | 15 +++++++++++++++ .../markdown input files/5_call_reference.md | 4 +++- readme_creator/output/call reference.md | 15 +++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/call reference.md b/docs/call reference.md index a0c20072..5b769deb 100644 --- a/docs/call reference.md +++ b/docs/call reference.md @@ -13733,6 +13733,21 @@ Parameter Descriptions: |--|--|--| | (int, int) | size | (width, height) tuple (int, int) of the desired window size in pixels | +### set_size + +Changes the size of the window, if possible. You can also use the Window.size prooerty +to set/get the size. + +``` +set_size(size) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| (int, int) | size | (width, height) of the desired window size | + ### set_title Change the title of the window diff --git a/readme_creator/markdown input files/5_call_reference.md b/readme_creator/markdown input files/5_call_reference.md index 1d9f56ed..50a244f6 100644 --- a/readme_creator/markdown input files/5_call_reference.md +++ b/readme_creator/markdown input files/5_call_reference.md @@ -3005,7 +3005,6 @@ Example: If first row has a `VPush`, then your layout will be At the bottom of ### move_to_center - ### normal @@ -3042,6 +3041,9 @@ Example: If first row has a `VPush`, then your layout will be At the bottom of ### set_min_size +### set_size + + ### set_title diff --git a/readme_creator/output/call reference.md b/readme_creator/output/call reference.md index a0c20072..5b769deb 100644 --- a/readme_creator/output/call reference.md +++ b/readme_creator/output/call reference.md @@ -13733,6 +13733,21 @@ Parameter Descriptions: |--|--|--| | (int, int) | size | (width, height) tuple (int, int) of the desired window size in pixels | +### set_size + +Changes the size of the window, if possible. You can also use the Window.size prooerty +to set/get the size. + +``` +set_size(size) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| (int, int) | size | (width, height) of the desired window size | + ### set_title Change the title of the window