Skip to content

Commit 26dc062

Browse files
committed
Add back jQuery for legacy code that referrs to it
1 parent 8193f41 commit 26dc062

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/inputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
search = window.URLSearchParams.new(window.location.search)
88
runtime = search.get("runtime") or "mpy"
9-
9+
jQuery = window.jQuery
1010
logger = logging.getLogger()
1111

1212

@@ -75,7 +75,7 @@ def open_popup(event):
7575

7676
widgets = [
7777
ltk.HBox(
78-
ltk.Text("Load a file:").css("margin-right", 8),
78+
ltk.Div("Load a file:").css("margin-right", 8),
7979
ltk.File(loaded_file),
8080
),
8181
ltk.VBox(

ltk/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _flatten(self, children):
8686
result.extend(self._flatten(child))
8787
elif isinstance(child, list):
8888
result.extend(self._flatten(child))
89-
elif isinstance(child, float):
89+
elif isinstance(child, (int, float, bool)):
9090
result.append(str(child))
9191
else:
9292
result.append(child)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "pyscript-ltk"
9-
version = "0.2.9"
9+
version = "0.2.10"
1010
description = "A little toolkit for writing UIs in PyScript"
1111
readme = "README.md"
1212
authors = [{ name = "Chris Laffra", email = "[email protected]" }]

0 commit comments

Comments
 (0)