Skip to content

Commit cb324f3

Browse files
authored
Merge pull request PySimpleGUI#6573 from PySimpleGUI/Dev-latest
New Udemy Coupon Code
2 parents 9b63e2e + f78e491 commit cb324f3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docs/cookbook.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<span style="font-weight: normal;">
2626
apply coupon for discount:
2727
</span>
28-
2F6C6BE01B8940D3E457
28+
C967880E71496470E40E
2929
</div>
30-
<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=2F6C6BE01B8940D3E457','_blank');">
30+
<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=C967880E71496470E40E','_blank');">
3131
click here to visit course page
3232
</button>
3333
</div>
@@ -2664,7 +2664,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
26642664
if resize:
26652665
new_width, new_height = resize
26662666
scale = min(new_height/cur_height, new_width/cur_width)
2667-
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
2667+
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.ANTIALIAS)
26682668
bio = io.BytesIO()
26692669
img.save(bio, format="PNG")
26702670
del img
@@ -2747,7 +2747,7 @@ def convert_to_bytes(file_or_bytes, resize=None):
27472747
if resize:
27482748
new_width, new_height = resize
27492749
scale = min(new_height/cur_height, new_width/cur_width)
2750-
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.LANCZOS)
2750+
img = img.resize((int(cur_width*scale), int(cur_height*scale)), PIL.Image.ANTIALIAS)
27512751
bio = io.BytesIO()
27522752
img.save(bio, format="PNG")
27532753
del img

docs/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course">
1010
</td>
1111
<td>
12-
<h5>apply coupon for discount:<br>2F6C6BE01B8940D3E457</h6>
13-
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=2F6C6BE01B8940D3E457">click here to visit course page</a>
12+
<h5>apply coupon for discount:<br>C967880E71496470E40E</h6>
13+
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=C967880E71496470E40E">click here to visit course page</a>
1414
</td>
1515
</tr>
1616
</table>

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course">
1010
</td>
1111
<td>
12-
<h5>apply coupon for discount:<br>2F6C6BE01B8940D3E457</h6>
13-
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=2F6C6BE01B8940D3E457">click here to visit course page</a>
12+
<h5>apply coupon for discount:<br>C967880E71496470E40E</h6>
13+
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=C967880E71496470E40E">click here to visit course page</a>
1414
</td>
1515
</tr>
1616
</table>

0 commit comments

Comments
 (0)