PySimpleGUI 6.4__tar.gz → 6.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pysimplegui
3
- Version: 6.4
3
+ Version: 6.5
4
4
  Summary: Python GUIs for Humans. Launched in 2018. NEW LGPL3 Version 6 released in 2026.
5
5
  Home-page: https://github.com/PySimpleGUI/PySimpleGUI
6
6
  Author: PySimpleGUI
@@ -59,6 +59,21 @@ That process is now complete. The next question was what to do with the code, do
59
59
  See the **History** section below for a summary of the PySimpleGUI history.
60
60
 
61
61
 
62
+ ## PySimpleGUI Anywhere - your programs in a browser
63
+
64
+ PySimpleGUI programs now run in a web browser - on a phone, an iPad or Android tablet, or any computer with a current browser - with
65
+ nothing to install. Python runs inside the browser tab (Pyodide) and a stand-in for tkinter draws the windows, so your program and
66
+ PySimpleGUI itself run unchanged.
67
+
68
+ * **Try it** - go to [PySimpleGUI.net](https://PySimpleGUI.net) and drag in a `.py` file, paste your code, or give it a GitHub link.
69
+ * **Share it** - put `https://pysimplegui.net/?` in front of a program's GitHub address and anyone can run it with one click. This one runs
70
+ the All Elements demo:
71
+ https://pysimplegui.net/?https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_All_Elements.py
72
+ * **Browsers** - Chrome or Edge 137+, Firefox 153+, Safari on iOS / iPadOS / macOS 27+. A program that talks to a piano or keyboard (MIDI)
73
+ needs the free MIDIWeb Browser app on an iPad or iPhone; Android and Chrome / Edge need nothing extra.
74
+ * **What's different in a browser** - threads take turns, a program can't start other programs or look through your files (it can open a
75
+ file you hand it), and it can only read web addresses from sites that allow it. The details: [Where it runs](https://pysimplegui.net/where.html).
76
+
62
77
  # PySimpleGUI 6
63
78
 
64
79
  <div>
@@ -253,7 +268,7 @@ A common question today is whether a GUI library still matters when an AI can wr
253
268
 
254
269
  The idea came from Claude: a PySimpleGUI program is short and always follows the same pattern - a layout, a window, an event loop. The same window written directly in tkinter takes more lines and more decisions, and that's more for an AI to get wrong. Short code is also easier for a person to read and check.
255
270
 
256
- That's a hypothesis, not a result. Claude also proposed a test that has an AI write the same programs both ways and compares how often they work. I'm planning to run it and post what I find. Details may change. I'm certainly aware that these LLMs are particularlyi skilled at making users feel right, smart, on the right track, when that may not match up with reality.
271
+ That's a hypothesis, not a result. Claude also proposed a test that has an AI write the same programs both ways and compares how often they work. I'm planning to run it and post what I find. Details may change. I'm certainly aware that these LLMs are particularly skilled at making users feel right, smart, on the right track, when that may not match up with reality.
257
272
 
258
273
 
259
274
  ---------------------------
@@ -282,7 +297,7 @@ My background is in Silicon Valley startups—building products, shipping softwa
282
297
  - February 2024 – Version 5 (commercial launch)
283
298
  - April 2026 – Version 6
284
299
 
285
- There’s an [Announcements Issue](https://github.com/PySimpleGUI/PySimpleGUI/issues/142) on GitHub that I’ve used like a running blog. It has grown to over 1,700 entries documenting the project in detail. To make reading it easier, a snapshot is posted in the documnation under the tab [Announcements 2018-2024](https://docs.pysimplegui.com/githubannouncements/).
300
+ There’s an [Announcements Issue](https://github.com/PySimpleGUI/PySimpleGUI/issues/142) on GitHub that I’ve used like a running blog. It has grown to over 1,700 entries documenting the project in detail. To make reading it easier, a snapshot is posted in the documentation under the tab [Announcements 2018-2024](https://docs.pysimplegui.com/githubannouncements/).
286
301
 
287
302
  ## Funding Reality
288
303
 
@@ -54,14 +54,15 @@
54
54
 
55
55
  """
56
56
 
57
- version = "6.4"
57
+ version = "6.5"
58
58
 
59
59
 
60
60
 
61
61
  """
62
62
  Changelog since last major release
63
63
 
64
- 6.4 02-Nov-2026 Version 6.4 release.
64
+ 6.5 05-Dec-2026 Version 6.5 release.
65
+
65
66
  """
66
67
 
67
68
 
@@ -143,9 +144,8 @@ except:
143
144
  import urllib.request
144
145
  import urllib.error
145
146
  import urllib.parse
146
- # Need ssl so that network access using urllib doesn't get errors (was happening on the Mac)
147
+ # ssl: PySimpleGUI's own downloads check certificates with a context of their own (_net_ssl_context). Python's global default is never changed.
147
148
  import ssl
148
- ssl._create_default_https_context = ssl._create_unverified_context
149
149
 
150
150
  # import re
151
151
  import ctypes
@@ -19782,10 +19782,15 @@ def set_options(icon=None, button_color=None, element_size=(None, None), button_
19782
19782
 
19783
19783
  if dpi_awareness is True:
19784
19784
  if running_windows():
19785
- if platform.release() == "7":
19786
- ctypes.windll.user32.SetProcessDPIAware()
19787
- elif platform.release() == "8" or platform.release() == "10":
19788
- ctypes.windll.shcore.SetProcessDpiAwareness(1)
19785
+ try:
19786
+ win_ver = int(platform.release())
19787
+
19788
+ if platform.release() == 7:
19789
+ ctypes.windll.user32.SetProcessDPIAware()
19790
+ elif win_ver >= 8:
19791
+ ctypes.windll.shcore.SetProcessDpiAwareness(1)
19792
+ except: # likely due to cast
19793
+ pass
19789
19794
 
19790
19795
  if scaling is not None:
19791
19796
  DEFAULT_SCALING = scaling
@@ -24171,6 +24176,31 @@ def execute_restart(your_filename, parms=''):
24171
24176
 
24172
24177
  UA_FOR_URLLIB = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
24173
24178
 
24179
+ def _net_ssl_context():
24180
+ """
24181
+ The SSL context PySimpleGUI uses for its own downloads. Certificates are always checked.
24182
+ Uses the system's CA certificates plus certifi's bundle when certifi (or pip's copy of it) can be imported. The python.org Mac
24183
+ build has no system CA certificates until its "Install Certificates.command" is run - certifi covers that case.
24184
+ Python's global default context is left alone, so HTTPS calls made by the rest of the program are not affected.
24185
+
24186
+ :return: A certificate-checking SSL context
24187
+ :rtype: ssl.SSLContext
24188
+ """
24189
+ context = ssl.create_default_context()
24190
+ try:
24191
+ import certifi
24192
+ except ImportError:
24193
+ try:
24194
+ from pip._vendor import certifi
24195
+ except ImportError:
24196
+ certifi = None
24197
+ if certifi is not None:
24198
+ try:
24199
+ context.load_verify_locations(cafile=certifi.where())
24200
+ except Exception:
24201
+ pass
24202
+ return context
24203
+
24174
24204
  def net_download_file(url, encoding='utf-8', raise_exception_on_error=False, specific_version=None):
24175
24205
  """
24176
24206
  Download a file located at a URL on the network
@@ -24188,7 +24218,7 @@ def net_download_file(url, encoding='utf-8', raise_exception_on_error=False, spe
24188
24218
 
24189
24219
  try:
24190
24220
  req = urllib.request.Request(url, headers={'User-Agent': UA_FOR_URLLIB})
24191
- res = urllib.request.urlopen(req)
24221
+ res = urllib.request.urlopen(req, context=_net_ssl_context())
24192
24222
  data = res.read()
24193
24223
  if encoding:
24194
24224
  data = data.decode(encoding)
@@ -25325,7 +25355,7 @@ def execute_pip_get_pypi_package_version(package):
25325
25355
  """
25326
25356
  try:
25327
25357
  url = f'https://pypi.org/pypi/{package}/json'
25328
- response = urllib.request.urlopen(url)
25358
+ response = urllib.request.urlopen(url, context=_net_ssl_context())
25329
25359
  data = json.load(response)
25330
25360
  return data['info']['version']
25331
25361
  except Exception as e:
@@ -17,6 +17,21 @@ That process is now complete. The next question was what to do with the code, do
17
17
  See the **History** section below for a summary of the PySimpleGUI history.
18
18
 
19
19
 
20
+ ## PySimpleGUI Anywhere - your programs in a browser
21
+
22
+ PySimpleGUI programs now run in a web browser - on a phone, an iPad or Android tablet, or any computer with a current browser - with
23
+ nothing to install. Python runs inside the browser tab (Pyodide) and a stand-in for tkinter draws the windows, so your program and
24
+ PySimpleGUI itself run unchanged.
25
+
26
+ * **Try it** - go to [PySimpleGUI.net](https://PySimpleGUI.net) and drag in a `.py` file, paste your code, or give it a GitHub link.
27
+ * **Share it** - put `https://pysimplegui.net/?` in front of a program's GitHub address and anyone can run it with one click. This one runs
28
+ the All Elements demo:
29
+ https://pysimplegui.net/?https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_All_Elements.py
30
+ * **Browsers** - Chrome or Edge 137+, Firefox 153+, Safari on iOS / iPadOS / macOS 27+. A program that talks to a piano or keyboard (MIDI)
31
+ needs the free MIDIWeb Browser app on an iPad or iPhone; Android and Chrome / Edge need nothing extra.
32
+ * **What's different in a browser** - threads take turns, a program can't start other programs or look through your files (it can open a
33
+ file you hand it), and it can only read web addresses from sites that allow it. The details: [Where it runs](https://pysimplegui.net/where.html).
34
+
20
35
  # PySimpleGUI 6
21
36
 
22
37
  <div>
@@ -211,7 +226,7 @@ A common question today is whether a GUI library still matters when an AI can wr
211
226
 
212
227
  The idea came from Claude: a PySimpleGUI program is short and always follows the same pattern - a layout, a window, an event loop. The same window written directly in tkinter takes more lines and more decisions, and that's more for an AI to get wrong. Short code is also easier for a person to read and check.
213
228
 
214
- That's a hypothesis, not a result. Claude also proposed a test that has an AI write the same programs both ways and compares how often they work. I'm planning to run it and post what I find. Details may change. I'm certainly aware that these LLMs are particularlyi skilled at making users feel right, smart, on the right track, when that may not match up with reality.
229
+ That's a hypothesis, not a result. Claude also proposed a test that has an AI write the same programs both ways and compares how often they work. I'm planning to run it and post what I find. Details may change. I'm certainly aware that these LLMs are particularly skilled at making users feel right, smart, on the right track, when that may not match up with reality.
215
230
 
216
231
 
217
232
  ---------------------------
@@ -240,7 +255,7 @@ My background is in Silicon Valley startups—building products, shipping softwa
240
255
  - February 2024 – Version 5 (commercial launch)
241
256
  - April 2026 – Version 6
242
257
 
243
- There’s an [Announcements Issue](https://github.com/PySimpleGUI/PySimpleGUI/issues/142) on GitHub that I’ve used like a running blog. It has grown to over 1,700 entries documenting the project in detail. To make reading it easier, a snapshot is posted in the documnation under the tab [Announcements 2018-2024](https://docs.pysimplegui.com/githubannouncements/).
258
+ There’s an [Announcements Issue](https://github.com/PySimpleGUI/PySimpleGUI/issues/142) on GitHub that I’ve used like a running blog. It has grown to over 1,700 entries documenting the project in detail. To make reading it easier, a snapshot is posted in the documentation under the tab [Announcements 2018-2024](https://docs.pysimplegui.com/githubannouncements/).
244
259
 
245
260
  ## Funding Reality
246
261
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pysimplegui
3
- Version: 6.4
3
+ Version: 6.5
4
4
  Summary: Python GUIs for Humans. Launched in 2018. NEW LGPL3 Version 6 released in 2026.
5
5
  Home-page: https://github.com/PySimpleGUI/PySimpleGUI
6
6
  Author: PySimpleGUI
@@ -59,6 +59,21 @@ That process is now complete. The next question was what to do with the code, do
59
59
  See the **History** section below for a summary of the PySimpleGUI history.
60
60
 
61
61
 
62
+ ## PySimpleGUI Anywhere - your programs in a browser
63
+
64
+ PySimpleGUI programs now run in a web browser - on a phone, an iPad or Android tablet, or any computer with a current browser - with
65
+ nothing to install. Python runs inside the browser tab (Pyodide) and a stand-in for tkinter draws the windows, so your program and
66
+ PySimpleGUI itself run unchanged.
67
+
68
+ * **Try it** - go to [PySimpleGUI.net](https://PySimpleGUI.net) and drag in a `.py` file, paste your code, or give it a GitHub link.
69
+ * **Share it** - put `https://pysimplegui.net/?` in front of a program's GitHub address and anyone can run it with one click. This one runs
70
+ the All Elements demo:
71
+ https://pysimplegui.net/?https://github.com/PySimpleGUI/PySimpleGUI/blob/master/DemoPrograms/Demo_All_Elements.py
72
+ * **Browsers** - Chrome or Edge 137+, Firefox 153+, Safari on iOS / iPadOS / macOS 27+. A program that talks to a piano or keyboard (MIDI)
73
+ needs the free MIDIWeb Browser app on an iPad or iPhone; Android and Chrome / Edge need nothing extra.
74
+ * **What's different in a browser** - threads take turns, a program can't start other programs or look through your files (it can open a
75
+ file you hand it), and it can only read web addresses from sites that allow it. The details: [Where it runs](https://pysimplegui.net/where.html).
76
+
62
77
  # PySimpleGUI 6
63
78
 
64
79
  <div>
@@ -253,7 +268,7 @@ A common question today is whether a GUI library still matters when an AI can wr
253
268
 
254
269
  The idea came from Claude: a PySimpleGUI program is short and always follows the same pattern - a layout, a window, an event loop. The same window written directly in tkinter takes more lines and more decisions, and that's more for an AI to get wrong. Short code is also easier for a person to read and check.
255
270
 
256
- That's a hypothesis, not a result. Claude also proposed a test that has an AI write the same programs both ways and compares how often they work. I'm planning to run it and post what I find. Details may change. I'm certainly aware that these LLMs are particularlyi skilled at making users feel right, smart, on the right track, when that may not match up with reality.
271
+ That's a hypothesis, not a result. Claude also proposed a test that has an AI write the same programs both ways and compares how often they work. I'm planning to run it and post what I find. Details may change. I'm certainly aware that these LLMs are particularly skilled at making users feel right, smart, on the right track, when that may not match up with reality.
257
272
 
258
273
 
259
274
  ---------------------------
@@ -282,7 +297,7 @@ My background is in Silicon Valley startups—building products, shipping softwa
282
297
  - February 2024 – Version 5 (commercial launch)
283
298
  - April 2026 – Version 6
284
299
 
285
- There’s an [Announcements Issue](https://github.com/PySimpleGUI/PySimpleGUI/issues/142) on GitHub that I’ve used like a running blog. It has grown to over 1,700 entries documenting the project in detail. To make reading it easier, a snapshot is posted in the documnation under the tab [Announcements 2018-2024](https://docs.pysimplegui.com/githubannouncements/).
300
+ There’s an [Announcements Issue](https://github.com/PySimpleGUI/PySimpleGUI/issues/142) on GitHub that I’ve used like a running blog. It has grown to over 1,700 entries documenting the project in detail. To make reading it easier, a snapshot is posted in the documentation under the tab [Announcements 2018-2024](https://docs.pysimplegui.com/githubannouncements/).
286
301
 
287
302
  ## Funding Reality
288
303
 
@@ -11,7 +11,7 @@ def readme():
11
11
 
12
12
  setuptools.setup(
13
13
  name="pysimplegui",
14
- version="6.4",
14
+ version="6.5",
15
15
  author="PySimpleGUI",
16
16
  author_email="PySimpleGUI@PySimpleGUI.org",
17
17
  description="Python GUIs for Humans. Launched in 2018. NEW LGPL3 Version 6 released in 2026.",
File without changes
File without changes