Merge pull request #5296 from PySimpleGUI/Dev-latest

New docstring updates.  New Udemy coupon
This commit is contained in:
PySimpleGUI 2022-03-24 11:36:43 -04:00 committed by GitHub
commit 4debb2daf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 28 deletions

View File

@ -86,6 +86,7 @@ Button(button_text = "",
image_data = None, image_data = None,
image_size = (None, None), image_size = (None, None),
image_subsample = None, image_subsample = None,
image_source = None,
border_width = None, border_width = None,
size = (None, None), size = (None, None),
s = (None, None), s = (None, None),
@ -123,6 +124,7 @@ Parameter Descriptions:
| (bool or str) | disabled | If True button will be created disabled. If BUTTON_DISABLED_MEANS_IGNORE then the button will be ignored rather than disabled using tkinter | | (bool or str) | disabled | If True button will be created disabled. If BUTTON_DISABLED_MEANS_IGNORE then the button will be ignored rather than disabled using tkinter |
| bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead | | bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead |
| bool | enable_events | Turns on the element specific events. If this button is a target, should it generate an event when filled in | | bool | enable_events | Turns on the element specific events. If this button is a target, should it generate an event when filled in |
| (str or bytes) | image_source | Image to place on button. Use INSTEAD of the image_filename and image_data. Unifies these into 1 easier to use parm |
| str | image_filename | image filename if there is a button image. GIFs and PNGs only. | | str | image_filename | image filename if there is a button image. GIFs and PNGs only. |
| bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data |
| (int, int) | image_size | Size of the image in pixels (width, height) | | (int, int) | image_size | Size of the image in pixels (width, height) |
@ -782,7 +784,8 @@ update(menu_definition = None,
visible = None, visible = None,
image_source = None, image_source = None,
image_size = (None, None), image_size = (None, None),
image_subsample = None) image_subsample = None,
button_text = None)
``` ```
Parameter Descriptions: Parameter Descriptions:
@ -794,6 +797,7 @@ Parameter Descriptions:
| (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string |
| (int, int) | image_size | Size of the image in pixels (width, height) | | (int, int) | image_size | Size of the image in pixels (width, height) |
| int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc |
| str | button_text | Text to be shown on the button |
### visible ### visible
@ -863,7 +867,8 @@ Update(menu_definition = None,
visible = None, visible = None,
image_source = None, image_source = None,
image_size = (None, None), image_size = (None, None),
image_subsample = None) image_subsample = None,
button_text = None)
``` ```
Parameter Descriptions: Parameter Descriptions:
@ -875,6 +880,7 @@ Parameter Descriptions:
| (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string |
| (int, int) | image_size | Size of the image in pixels (width, height) | | (int, int) | image_size | Size of the image in pixels (width, height) |
| int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc |
| str | button_text | Text to be shown on the button |
--------- ---------
@ -2755,9 +2761,9 @@ Parameter Descriptions:
| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) | | (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) |
| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used | | (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used |
| bool | change_submits | * DEPRICATED DO NOT USE. Use `enable_events` instead | | bool | change_submits | * DEPRICATED DO NOT USE. Use `enable_events` instead |
| bool | drag_submits | if True and Events are enabled for the Graph, will report Events any time the mouse moves while button down | | bool | drag_submits | if True and Events are enabled for the Graph, will report Events any time the mouse moves while button down. When the mouse button is released, you'll get an event = graph key + '+UP' (if key is a string.. if not a string, it'll be made into a tuple) |
| bool | enable_events | If True then clicks on the Graph are immediately reported as an event. Use this instead of change_submits | | bool | enable_events | If True then clicks on the Graph are immediately reported as an event. Use this instead of change_submits |
| bool | motion_events | If True then if no button is down and the mouse is moved, an event is generated with key = graph key + '+MOVE' (if key is a string) | | bool | motion_events | If True then if no button is down and the mouse is moved, an event is generated with key = graph key + '+MOVE' (if key is a string, it not a string then a tuple is returned) |
| str or int or tuple or object | key | Value that uniquely identifies this element from all other elements. Used when Finding an element or in return values. Must be unique to the window | | str or int or tuple or object | key | Value that uniquely identifies this element from all other elements. Used when Finding an element or in return values. Must be unique to the window |
| str or int or tuple or object | k | Same as the Key. You can use either k or key. Which ever is set will be used. | | str or int or tuple or object | k | Same as the Key. You can use either k or key. Which ever is set will be used. |
| str | tooltip | text, that will appear when mouse hovers over the element | | str | tooltip | text, that will appear when mouse hovers over the element |
@ -8532,6 +8538,7 @@ Spin(values,
size = (None, None), size = (None, None),
s = (None, None), s = (None, None),
auto_size_text = None, auto_size_text = None,
bind_return_key = None,
font = None, font = None,
background_color = None, background_color = None,
text_color = None, text_color = None,
@ -8560,6 +8567,7 @@ Parameter Descriptions:
| (int, int) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 | | (int, int) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 |
| (int, int) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used | | (int, int) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used |
| bool | auto_size_text | if True will size the element to match the length of the text | | bool | auto_size_text | if True will size the element to match the length of the text |
| bool | bind_return_key | If True, then the return key will cause a the element to generate an event |
| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | | (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| str | background_color | color of background | | str | background_color | color of background |
| str | text_color | color of the text | | str | text_color | color of the text |
@ -10786,10 +10794,10 @@ the is not possible using the OS provided titlebar such as the color.
NOTE LINUX USERS - at the moment the minimize function is not yet working. Windows users NOTE LINUX USERS - at the moment the minimize function is not yet working. Windows users
should have no problem and it should function as a normal window would. should have no problem and it should function as a normal window would.
This titlebar is created from a row of elements that is then encapulated into a This titlebar is created from a row of elements that is then encapsulated into a
single Column element which is what the Titlebar returns to you. one Column element which is what this Titlebar function returns to you.
A custom titlebar removes the margins from your window. Ify ou want the remainder A custom titlebar removes the margins from your window. If you want the remainder
of your Window to have margins, place the layout after the Titlebar into a Column and of your Window to have margins, place the layout after the Titlebar into a Column and
set the pad of that Column to the dimensions you would like your margins to have. set the pad of that Column to the dimensions you would like your margins to have.
@ -10810,7 +10818,7 @@ Parameter Descriptions:
|Type|Name|Meaning| |Type|Name|Meaning|
|--|--|--| |--|--|--|
| str or bytes or None | icon | Can be either a filename or Base64 byte string of a PNG. For Windows if filename, it MUST be ICO format. For Linux, must NOT be ICO | | str or bytes or None | icon | Can be either a filename or Base64 byte string of a PNG or GIF. This is used in an Image element to create the titlebar |
| str | title | The "title" to show in the titlebar | | str | title | The "title" to show in the titlebar |
| str or None | text_color | Text color for titlebar | | str or None | text_color | Text color for titlebar |
| str or None | background_color | Background color for titlebar | | str or None | background_color | Background color for titlebar |
@ -12087,6 +12095,9 @@ normal()
Call your function that will take a long time to execute. When it's complete, send an event Call your function that will take a long time to execute. When it's complete, send an event
specified by the end_key. specified by the end_key.
Starts a thread on your behalf.
This is a way for you to "ease into" threading without learning the details of threading. This is a way for you to "ease into" threading without learning the details of threading.
Your function will run, and when it returns 2 things will happen: Your function will run, and when it returns 2 things will happen:
1. The value you provide for end_key will be returned to you when you call window.read() 1. The value you provide for end_key will be returned to you when you call window.read()

View File

@ -25,9 +25,9 @@
<span style="font-weight: normal;"> <span style="font-weight: normal;">
apply coupon for discount: apply coupon for discount:
</span> </span>
0D50D92ADEDA243A4A4B BE7BDF4D74791CDC1BF6
</div> </div>
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=0D50D92ADEDA243A4A4B','_blank');"> <button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=BE7BDF4D74791CDC1BF6','_blank');">
click here to visit course page click here to visit course page
</button> </button>
</div> </div>

View File

@ -9,12 +9,14 @@
<img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course"> <img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course">
</td> </td>
<td> <td>
<h5>apply coupon for discount:<br>0D50D92ADEDA243A4A4B</h6> <h5>apply coupon for discount:<br>BE7BDF4D74791CDC1BF6</h6>
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=0D50D92ADEDA243A4A4B">click here to visit course page</a> <a href="https://www.udemy.com/course/pysimplegui/?couponCode=BE7BDF4D74791CDC1BF6">click here to visit course page</a>
</td> </td>
</tr> </tr>
</table> </table>
Transforms the tkinter, Qt, WxPython, and Remi (browser-based) GUI frameworks into a simpler interface. The window definition is simplified by using Python core data types understood by beginners (lists and dictionaries). Further simplification happens by changing event handling from a callback-based model to a message passing one. Transforms the tkinter, Qt, WxPython, and Remi (browser-based) GUI frameworks into a simpler interface. The window definition is simplified by using Python core data types understood by beginners (lists and dictionaries). Further simplification happens by changing event handling from a callback-based model to a message passing one.
Your code is not _required_ to have an object oriented architecture which makes the package usable by a larger audience. While the architecture is simple to understand, it does not *necessarily* limit you to only simple problems. Your code is not _required_ to have an object oriented architecture which makes the package usable by a larger audience. While the architecture is simple to understand, it does not *necessarily* limit you to only simple problems.
@ -61,11 +63,13 @@ PySimpleGUI needs your support. If you find PySimpleGUI useful, please consider
<p align="center"> <p align="center">
<img src="https://github-readme-stats.vercel.app/api/?username=PySimpleGUI&bg_color=3e7bac&title_color=ffdd55&icon_color=ffdd55&text_color=ffdd55&show_icons=true&count_private=true"> <img src="https://github-readme-stats.vercel.app/api/?username=PySimpleGUI&bg_color=3e7bac&title_color=ffdd55&icon_color=ffdd55&text_color=ffdd55&show_icons=true&count_private=true">
</p>
</p>
<hr> <hr>

View File

@ -9,12 +9,14 @@
<img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course"> <img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course">
</td> </td>
<td> <td>
<h5>apply coupon for discount:<br>0D50D92ADEDA243A4A4B</h6> <h5>apply coupon for discount:<br>BE7BDF4D74791CDC1BF6</h6>
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=0D50D92ADEDA243A4A4B">click here to visit course page</a> <a href="https://www.udemy.com/course/pysimplegui/?couponCode=BE7BDF4D74791CDC1BF6">click here to visit course page</a>
</td> </td>
</tr> </tr>
</table> </table>
Transforms the tkinter, Qt, WxPython, and Remi (browser-based) GUI frameworks into a simpler interface. The window definition is simplified by using Python core data types understood by beginners (lists and dictionaries). Further simplification happens by changing event handling from a callback-based model to a message passing one. Transforms the tkinter, Qt, WxPython, and Remi (browser-based) GUI frameworks into a simpler interface. The window definition is simplified by using Python core data types understood by beginners (lists and dictionaries). Further simplification happens by changing event handling from a callback-based model to a message passing one.
Your code is not _required_ to have an object oriented architecture which makes the package usable by a larger audience. While the architecture is simple to understand, it does not *necessarily* limit you to only simple problems. Your code is not _required_ to have an object oriented architecture which makes the package usable by a larger audience. While the architecture is simple to understand, it does not *necessarily* limit you to only simple problems.
@ -61,11 +63,13 @@ PySimpleGUI needs your support. If you find PySimpleGUI useful, please consider
<p align="center"> <p align="center">
<img src="https://github-readme-stats.vercel.app/api/?username=PySimpleGUI&bg_color=3e7bac&title_color=ffdd55&icon_color=ffdd55&text_color=ffdd55&show_icons=true&count_private=true"> <img src="https://github-readme-stats.vercel.app/api/?username=PySimpleGUI&bg_color=3e7bac&title_color=ffdd55&icon_color=ffdd55&text_color=ffdd55&show_icons=true&count_private=true">
</p>
</p>
<hr> <hr>

View File

@ -52,9 +52,9 @@ HOW DO I INSERT IMAGES ???
<span style="font-weight: normal;"> <span style="font-weight: normal;">
apply coupon for discount: apply coupon for discount:
</span> </span>
0D50D92ADEDA243A4A4B BE7BDF4D74791CDC1BF6
</div> </div>
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=0D50D92ADEDA243A4A4B','_blank');"> <button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=BE7BDF4D74791CDC1BF6','_blank');">
click here to visit course page click here to visit course page
</button> </button>
</div> </div>

View File

@ -86,6 +86,7 @@ Button(button_text = "",
image_data = None, image_data = None,
image_size = (None, None), image_size = (None, None),
image_subsample = None, image_subsample = None,
image_source = None,
border_width = None, border_width = None,
size = (None, None), size = (None, None),
s = (None, None), s = (None, None),
@ -123,6 +124,7 @@ Parameter Descriptions:
| (bool or str) | disabled | If True button will be created disabled. If BUTTON_DISABLED_MEANS_IGNORE then the button will be ignored rather than disabled using tkinter | | (bool or str) | disabled | If True button will be created disabled. If BUTTON_DISABLED_MEANS_IGNORE then the button will be ignored rather than disabled using tkinter |
| bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead | | bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead |
| bool | enable_events | Turns on the element specific events. If this button is a target, should it generate an event when filled in | | bool | enable_events | Turns on the element specific events. If this button is a target, should it generate an event when filled in |
| (str or bytes) | image_source | Image to place on button. Use INSTEAD of the image_filename and image_data. Unifies these into 1 easier to use parm |
| str | image_filename | image filename if there is a button image. GIFs and PNGs only. | | str | image_filename | image filename if there is a button image. GIFs and PNGs only. |
| bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data |
| (int, int) | image_size | Size of the image in pixels (width, height) | | (int, int) | image_size | Size of the image in pixels (width, height) |
@ -782,7 +784,8 @@ update(menu_definition = None,
visible = None, visible = None,
image_source = None, image_source = None,
image_size = (None, None), image_size = (None, None),
image_subsample = None) image_subsample = None,
button_text = None)
``` ```
Parameter Descriptions: Parameter Descriptions:
@ -794,6 +797,7 @@ Parameter Descriptions:
| (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string |
| (int, int) | image_size | Size of the image in pixels (width, height) | | (int, int) | image_size | Size of the image in pixels (width, height) |
| int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc |
| str | button_text | Text to be shown on the button |
### visible ### visible
@ -863,7 +867,8 @@ Update(menu_definition = None,
visible = None, visible = None,
image_source = None, image_source = None,
image_size = (None, None), image_size = (None, None),
image_subsample = None) image_subsample = None,
button_text = None)
``` ```
Parameter Descriptions: Parameter Descriptions:
@ -875,6 +880,7 @@ Parameter Descriptions:
| (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string |
| (int, int) | image_size | Size of the image in pixels (width, height) | | (int, int) | image_size | Size of the image in pixels (width, height) |
| int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc |
| str | button_text | Text to be shown on the button |
--------- ---------
@ -2755,9 +2761,9 @@ Parameter Descriptions:
| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) | | (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) |
| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used | | (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used |
| bool | change_submits | * DEPRICATED DO NOT USE. Use `enable_events` instead | | bool | change_submits | * DEPRICATED DO NOT USE. Use `enable_events` instead |
| bool | drag_submits | if True and Events are enabled for the Graph, will report Events any time the mouse moves while button down | | bool | drag_submits | if True and Events are enabled for the Graph, will report Events any time the mouse moves while button down. When the mouse button is released, you'll get an event = graph key + '+UP' (if key is a string.. if not a string, it'll be made into a tuple) |
| bool | enable_events | If True then clicks on the Graph are immediately reported as an event. Use this instead of change_submits | | bool | enable_events | If True then clicks on the Graph are immediately reported as an event. Use this instead of change_submits |
| bool | motion_events | If True then if no button is down and the mouse is moved, an event is generated with key = graph key + '+MOVE' (if key is a string) | | bool | motion_events | If True then if no button is down and the mouse is moved, an event is generated with key = graph key + '+MOVE' (if key is a string, it not a string then a tuple is returned) |
| str or int or tuple or object | key | Value that uniquely identifies this element from all other elements. Used when Finding an element or in return values. Must be unique to the window | | str or int or tuple or object | key | Value that uniquely identifies this element from all other elements. Used when Finding an element or in return values. Must be unique to the window |
| str or int or tuple or object | k | Same as the Key. You can use either k or key. Which ever is set will be used. | | str or int or tuple or object | k | Same as the Key. You can use either k or key. Which ever is set will be used. |
| str | tooltip | text, that will appear when mouse hovers over the element | | str | tooltip | text, that will appear when mouse hovers over the element |
@ -8532,6 +8538,7 @@ Spin(values,
size = (None, None), size = (None, None),
s = (None, None), s = (None, None),
auto_size_text = None, auto_size_text = None,
bind_return_key = None,
font = None, font = None,
background_color = None, background_color = None,
text_color = None, text_color = None,
@ -8560,6 +8567,7 @@ Parameter Descriptions:
| (int, int) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 | | (int, int) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 |
| (int, int) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used | | (int, int) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used |
| bool | auto_size_text | if True will size the element to match the length of the text | | bool | auto_size_text | if True will size the element to match the length of the text |
| bool | bind_return_key | If True, then the return key will cause a the element to generate an event |
| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | | (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| str | background_color | color of background | | str | background_color | color of background |
| str | text_color | color of the text | | str | text_color | color of the text |
@ -10786,10 +10794,10 @@ the is not possible using the OS provided titlebar such as the color.
NOTE LINUX USERS - at the moment the minimize function is not yet working. Windows users NOTE LINUX USERS - at the moment the minimize function is not yet working. Windows users
should have no problem and it should function as a normal window would. should have no problem and it should function as a normal window would.
This titlebar is created from a row of elements that is then encapulated into a This titlebar is created from a row of elements that is then encapsulated into a
single Column element which is what the Titlebar returns to you. one Column element which is what this Titlebar function returns to you.
A custom titlebar removes the margins from your window. Ify ou want the remainder A custom titlebar removes the margins from your window. If you want the remainder
of your Window to have margins, place the layout after the Titlebar into a Column and of your Window to have margins, place the layout after the Titlebar into a Column and
set the pad of that Column to the dimensions you would like your margins to have. set the pad of that Column to the dimensions you would like your margins to have.
@ -10810,7 +10818,7 @@ Parameter Descriptions:
|Type|Name|Meaning| |Type|Name|Meaning|
|--|--|--| |--|--|--|
| str or bytes or None | icon | Can be either a filename or Base64 byte string of a PNG. For Windows if filename, it MUST be ICO format. For Linux, must NOT be ICO | | str or bytes or None | icon | Can be either a filename or Base64 byte string of a PNG or GIF. This is used in an Image element to create the titlebar |
| str | title | The "title" to show in the titlebar | | str | title | The "title" to show in the titlebar |
| str or None | text_color | Text color for titlebar | | str or None | text_color | Text color for titlebar |
| str or None | background_color | Background color for titlebar | | str or None | background_color | Background color for titlebar |
@ -12087,6 +12095,9 @@ normal()
Call your function that will take a long time to execute. When it's complete, send an event Call your function that will take a long time to execute. When it's complete, send an event
specified by the end_key. specified by the end_key.
Starts a thread on your behalf.
This is a way for you to "ease into" threading without learning the details of threading. This is a way for you to "ease into" threading without learning the details of threading.
Your function will run, and when it returns 2 things will happen: Your function will run, and when it returns 2 things will happen:
1. The value you provide for end_key will be returned to you when you call window.read() 1. The value you provide for end_key will be returned to you when you call window.read()

View File

@ -25,9 +25,9 @@
<span style="font-weight: normal;"> <span style="font-weight: normal;">
apply coupon for discount: apply coupon for discount:
</span> </span>
0D50D92ADEDA243A4A4B BE7BDF4D74791CDC1BF6
</div> </div>
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=0D50D92ADEDA243A4A4B','_blank');"> <button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=BE7BDF4D74791CDC1BF6','_blank');">
click here to visit course page click here to visit course page
</button> </button>
</div> </div>