Skip to content

Commit

Permalink
Add back jQuery for legacy code that referrs to it
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Nov 30, 2024
1 parent 8193f41 commit 26dc062
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

search = window.URLSearchParams.new(window.location.search)
runtime = search.get("runtime") or "mpy"

jQuery = window.jQuery
logger = logging.getLogger()


Expand Down Expand Up @@ -75,7 +75,7 @@ def open_popup(event):

widgets = [
ltk.HBox(
ltk.Text("Load a file:").css("margin-right", 8),
ltk.Div("Load a file:").css("margin-right", 8),
ltk.File(loaded_file),
),
ltk.VBox(
Expand Down
2 changes: 1 addition & 1 deletion ltk/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _flatten(self, children):
result.extend(self._flatten(child))
elif isinstance(child, list):
result.extend(self._flatten(child))
elif isinstance(child, float):
elif isinstance(child, (int, float, bool)):
result.append(str(child))
else:
result.append(child)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pyscript-ltk"
version = "0.2.9"
version = "0.2.10"
description = "A little toolkit for writing UIs in PyScript"
readme = "README.md"
authors = [{ name = "Chris Laffra", email = "chris@chrislaffra.com" }]
Expand Down

0 comments on commit 26dc062

Please sign in to comment.