Skip to content

Commit ef4b553

Browse files
authored
Merge pull request #178 from pyscript/2025-3-1
2025 3 1
2 parents ef24e5c + 8e94159 commit ef4b553

File tree

6 files changed

+25
-14
lines changed

6 files changed

+25
-14
lines changed

docs/beginning-pyscript.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ module in the document's `<head>` tag:
117117
<meta charset="utf-8" />
118118
<meta name="viewport" content="width=device-width,initial-scale=1" />
119119
<title>🦜 Polyglot - Piratical PyScript</title>
120-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
121-
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
120+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.3.1/core.css">
121+
<script type="module" src="https://pyscript.net/releases/2025.3.1/core.js"></script>
122122
</head>
123123
<body>
124124

@@ -168,8 +168,8 @@ In the end, our HTML should look like this:
168168
<meta charset="utf-8" />
169169
<meta name="viewport" content="width=device-width,initial-scale=1" />
170170
<title>🦜 Polyglot - Piratical PyScript</title>
171-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
172-
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
171+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.3.1/core.css">
172+
<script type="module" src="https://pyscript.net/releases/2025.3.1/core.js"></script>
173173
</head>
174174
<body>
175175
<h1>Polyglot 🦜 💬 🇬🇧 ➡️ 🏴‍☠️</h1>

docs/user-guide/first-steps.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ CSS:
2020
<meta charset="UTF-8">
2121
<meta name="viewport" content="width=device-width,initial-scale=1.0">
2222
<!-- PyScript CSS -->
23-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
23+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.3.1/core.css">
2424
<!-- This script tag bootstraps PyScript -->
25-
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
25+
<script type="module" src="https://pyscript.net/releases/2025.3.1/core.js"></script>
2626
</head>
2727
<body>
2828
<!-- your code goes here... -->

docs/user-guide/plugins.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ For example, this will work because all references are contained within the
100100
registered function:
101101

102102
```js
103-
import { hooks } from "https://pyscript.net/releases/2025.2.4/core.js";
103+
import { hooks } from "https://pyscript.net/releases/2025.3.1/core.js";
104104

105105
hooks.worker.onReady.add(() => {
106106
// NOT suggested, just an example!
@@ -114,7 +114,7 @@ hooks.worker.onReady.add(() => {
114114
However, due to the outer reference to the variable `i`, this will fail:
115115

116116
```js
117-
import { hooks } from "https://pyscript.net/releases/2025.2.4/core.js";
117+
import { hooks } from "https://pyscript.net/releases/2025.3.1/core.js";
118118

119119
// NO NO NO NO NO! ☠️
120120
let i = 0;
@@ -147,7 +147,7 @@ the page.
147147

148148
```js title="log.js - a plugin that simply logs to the console."
149149
// import the hooks from PyScript first...
150-
import { hooks } from "https://pyscript.net/releases/2025.2.4/core.js";
150+
import { hooks } from "https://pyscript.net/releases/2025.3.1/core.js";
151151

152152
// The `hooks.main` attribute defines plugins that run on the main thread.
153153
hooks.main.onReady.add((wrap, element) => {
@@ -197,8 +197,8 @@ hooks.worker.onAfterRun.add(() => {
197197
<!-- JS plugins should be available before PyScript bootstraps -->
198198
<script type="module" src="./log.js"></script>
199199
<!-- PyScript -->
200-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
201-
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
200+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.3.1/core.css">
201+
<script type="module" src="https://pyscript.net/releases/2025.3.1/core.js"></script>
202202
</head>
203203
<body>
204204
<script type="mpy">

docs/user-guide/pygame-ce.md

+11
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ on the page.
4040
A config attribute can be specified to add extra packages but right now that's
4141
all it can do.
4242

43+
!!! Info
44+
45+
Sometimes you need to gather text based user input when starting a game.
46+
The usual way to do this is via the builtin `input` function.
47+
48+
Because PyGame-CE **only runs on the main thread**, the only way to block
49+
your code while it waits for user `input` is to use a
50+
[JavaScript prompt](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)
51+
instead of input typed in via a terminal. PyScript handles this
52+
automatically for you if you use the `input` function.
53+
4354
This is an experiment, but:
4455

4556
* It is possible to use regular PyScript to load the pygame-ce package and use

docs/user-guide/workers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ Here's how:
282282
<meta charset="utf-8">
283283
<meta name="viewport" content="width=device-width,initial-scale=1">
284284
<!-- PyScript CSS -->
285-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
285+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.3.1/core.css">
286286
<!-- This script tag bootstraps PyScript -->
287-
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
287+
<script type="module" src="https://pyscript.net/releases/2025.3.1/core.js"></script>
288288
<title>PyWorker - mpy bootstrapping pyodide example</title>
289289
<script type="mpy" src="main.py"></script>
290290
</head>

version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "2025.2.4"
2+
"version": "2025.3.1"
33
}

0 commit comments

Comments
 (0)