python-cui 1.4.0.7__tar.gz → 1.4.0.8__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.
Files changed (159) hide show
  1. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/PKG-INFO +1 -1
  2. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/pyproject.toml +1 -1
  3. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_cui.pyi +5 -2
  4. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_cui.pyx +16 -6
  5. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_app.py +8 -8
  6. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/.github/workflows/ci.yml +0 -0
  7. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/.github/workflows/publish-to-pypi.yml +0 -0
  8. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/.gitignore +0 -0
  9. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/.gitmodules +0 -0
  10. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CMakeLists.txt +0 -0
  11. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/.editorconfig +0 -0
  12. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/.gitignore +0 -0
  13. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/CHANGELOG.md +0 -0
  14. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/CLAUDE.md +0 -0
  15. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/CMakeLists.txt +0 -0
  16. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/LICENSE +0 -0
  17. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/README.md +0 -0
  18. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/THIRD_PARTY.md +0 -0
  19. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/cmake/CuiApp.cmake +0 -0
  20. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/cmake/mingw-w64.cmake +0 -0
  21. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/examples/CMakeLists.txt +0 -0
  22. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/include/cui/cui.h +0 -0
  23. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/include/cui/cui_app.h +0 -0
  24. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/include/cui/cui_icons.h +0 -0
  25. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/include/cui/cui_render.h +0 -0
  26. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_actions.c +0 -0
  27. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_ai.c +0 -0
  28. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_bidi.c +0 -0
  29. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_bidi.h +0 -0
  30. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_bidi_data.h +0 -0
  31. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_charts.c +0 -0
  32. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_chrome.c +0 -0
  33. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_code.c +0 -0
  34. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_controls.c +0 -0
  35. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_core.c +0 -0
  36. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_curves.c +0 -0
  37. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_data.c +0 -0
  38. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_devpanels.c +0 -0
  39. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_devtools.c +0 -0
  40. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_devviews.c +0 -0
  41. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_dials.c +0 -0
  42. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_diff.c +0 -0
  43. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_disclosure.c +0 -0
  44. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_dock.c +0 -0
  45. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_draw.c +0 -0
  46. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_editor.c +0 -0
  47. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_emoji.c +0 -0
  48. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_emoji_data.h +0 -0
  49. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_extras.c +0 -0
  50. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_files.c +0 -0
  51. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_flame.c +0 -0
  52. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_font_data.c +0 -0
  53. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_graph.c +0 -0
  54. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_grid.c +0 -0
  55. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_hex.c +0 -0
  56. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_image.c +0 -0
  57. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_inflate.c +0 -0
  58. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_instrument.c +0 -0
  59. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_internal.h +0 -0
  60. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_joining.h +0 -0
  61. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_layout.c +0 -0
  62. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_markdown.c +0 -0
  63. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_media.c +0 -0
  64. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_month.c +0 -0
  65. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_motion.c +0 -0
  66. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_nodes.c +0 -0
  67. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_overlay.c +0 -0
  68. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_photo.c +0 -0
  69. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_pickers.c +0 -0
  70. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_planning.c +0 -0
  71. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_regex.c +0 -0
  72. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_shape.c +0 -0
  73. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_shape.h +0 -0
  74. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_social.c +0 -0
  75. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_strings.c +0 -0
  76. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_terminal.c +0 -0
  77. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_text.c +0 -0
  78. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_textedit.c +0 -0
  79. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_theme.c +0 -0
  80. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_timeline.c +0 -0
  81. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_tools.c +0 -0
  82. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_tour.c +0 -0
  83. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_treetable.c +0 -0
  84. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_viz.c +0 -0
  85. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/cui_widgets.c +0 -0
  86. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_app.c +0 -0
  87. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_app_cocoa.m +0 -0
  88. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_app_glfw.c +0 -0
  89. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_app_sdl2.c +0 -0
  90. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_app_win32.c +0 -0
  91. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_app_x11.c +0 -0
  92. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_dialogs.c +0 -0
  93. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/platform/cui_platform.h +0 -0
  94. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/render/cui_render_gl.c +0 -0
  95. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/src/render/cui_render_sw.c +0 -0
  96. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/tests/CMakeLists.txt +0 -0
  97. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/third_party/LICENSE-Unicode.txt +0 -0
  98. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/third_party/stb_image.h +0 -0
  99. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/third_party/stb_image_write.h +0 -0
  100. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/third_party/stb_rect_pack.h +0 -0
  101. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/CUI/third_party/stb_truetype.h +0 -0
  102. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/README.md +0 -0
  103. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/components-dark.png +0 -0
  104. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/components-light.png +0 -0
  105. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/assistant.png +0 -0
  106. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/caffeine.png +0 -0
  107. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/dashboard.png +0 -0
  108. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/finance.png +0 -0
  109. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/hello.png +0 -0
  110. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/mail.png +0 -0
  111. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/music.png +0 -0
  112. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/notes.png +0 -0
  113. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/settings.png +0 -0
  114. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/todo.png +0 -0
  115. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/docs/images/examples/tracker.png +0 -0
  116. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/_common.py +0 -0
  117. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/assistant.py +0 -0
  118. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/caffeine.py +0 -0
  119. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/components.py +0 -0
  120. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/dashboard.py +0 -0
  121. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/finance.py +0 -0
  122. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/hello.py +0 -0
  123. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/mail.py +0 -0
  124. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/music.py +0 -0
  125. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/notes.py +0 -0
  126. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/settings.py +0 -0
  127. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/todo.py +0 -0
  128. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/examples/tracker.py +0 -0
  129. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/__init__.py +0 -0
  130. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/__init__.pyi +0 -0
  131. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_api.pyi +0 -0
  132. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_api.pyx +0 -0
  133. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_cui.pxd +0 -0
  134. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_gen/COVERAGE.md +0 -0
  135. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_gen/__init__.py +0 -0
  136. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_gen/constants.py +0 -0
  137. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_gen/model.py +0 -0
  138. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_gen/sizes.h +0 -0
  139. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_stdbool.pxd +0 -0
  140. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_trampoline.c +0 -0
  141. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_trampoline.h +0 -0
  142. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/_types.py +0 -0
  143. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/cui_decl.pxd +0 -0
  144. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/py.typed +0 -0
  145. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/src/cui/ui.py +0 -0
  146. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/conftest.py +0 -0
  147. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_charts.py +0 -0
  148. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_context.py +0 -0
  149. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_examples.py +0 -0
  150. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_facade.py +0 -0
  151. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_generated.py +0 -0
  152. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_marshalling.py +0 -0
  153. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tests/test_render.py +0 -0
  154. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tools/clang-include/README.md +0 -0
  155. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tools/clang-include/stdarg.h +0 -0
  156. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tools/clang-include/stdbool.h +0 -0
  157. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tools/clang-include/stddef.h +0 -0
  158. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tools/clang-include/stdint.h +0 -0
  159. {python_cui-1.4.0.7 → python_cui-1.4.0.8}/tools/gen_cui.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-cui
3
- Version: 1.4.0.7
3
+ Version: 1.4.0.8
4
4
  Summary: Python bindings for CUI
5
5
  Keywords: gui,ui,immediate-mode,cui,bindings,cython
6
6
  License-Expression: MIT
@@ -18,7 +18,7 @@ classifiers = [
18
18
  "Topic :: Software Development :: User Interfaces",
19
19
  ]
20
20
  # The library version tracks the vendored CUI release: <cui major>.<minor>.<patch>.<bindings revision>.
21
- version = "1.4.0.7"
21
+ version = "1.4.0.8"
22
22
  dependencies = []
23
23
 
24
24
  [project.urls]
@@ -1,6 +1,6 @@
1
1
  """Type stubs for the hand-written Cython core."""
2
2
 
3
- from typing import Any, Callable
3
+ from typing import TYPE_CHECKING, Any, Callable
4
4
 
5
5
  from ._types import (
6
6
  CanvasResult,
@@ -16,6 +16,9 @@ from ._types import (
16
16
  Vec2,
17
17
  )
18
18
 
19
+ if TYPE_CHECKING:
20
+ from .ui import UI
21
+
19
22
  __version__: str
20
23
  CUI_VERSION: str
21
24
 
@@ -147,7 +150,7 @@ class App:
147
150
  def is_software(self) -> bool: ...
148
151
  def create(self, **desc: Any) -> App: ...
149
152
  def frame(self) -> bool: ...
150
- def run(self, frame: Callable[[Context], None], **desc: Any) -> int: ...
153
+ def run(self, frame: Callable[["UI"], None], **desc: Any) -> int: ...
151
154
  def quit(self) -> None: ...
152
155
  def set_title(self, title: str) -> None: ...
153
156
  def set_size(self, width: int, height: int) -> None: ...
@@ -1487,24 +1487,34 @@ cdef class App:
1487
1487
  return bool(ok)
1488
1488
 
1489
1489
  def run(self, frame, **desc):
1490
- """Create the window and call ``frame(context)`` until it closes.
1490
+ """Create the window and call ``frame(ui)`` until it closes.
1491
1491
 
1492
- The loop runs with the GIL released, so other Python threads keep
1493
- running while the window waits for input. An exception raised inside
1494
- ``frame`` stops the loop, unwinds cleanly and is re-raised here.
1492
+ ``ui`` is the :class:`cui.UI` facade over the frame's
1493
+ :class:`cui.Context`, also reachable as ``ui.context``. The loop runs
1494
+ with the GIL released, so other Python threads keep running while the
1495
+ window waits for input. An exception raised inside ``frame`` stops the
1496
+ loop, unwinds cleanly and is re-raised here.
1495
1497
  """
1496
1498
  cdef cui_app_desc d
1497
1499
  cdef pycui_run_state st
1498
1500
  cdef Context ctx
1499
1501
  cdef int rc
1500
1502
  cdef object info = None
1503
+ cdef object invoke
1504
+ cdef object ui
1501
1505
 
1502
1506
  memset(&d, 0, sizeof(d))
1503
1507
  memset(&st, 0, sizeof(st))
1504
1508
  self._fill_desc(&d, dict(desc))
1505
1509
  ctx = Context.__new__(Context)
1506
- Py_INCREF(frame)
1507
- st.callable = <PyObject *>frame
1510
+ # The C trampoline binds the frame's cui_ctx onto ``ctx`` and calls the
1511
+ # frame callable with it; the callable gets the UI facade instead.
1512
+ from .ui import UI
1513
+
1514
+ ui = UI(ctx)
1515
+ invoke = lambda _context: frame(ui)
1516
+ Py_INCREF(invoke)
1517
+ st.callable = <PyObject *>invoke
1508
1518
  Py_INCREF(ctx)
1509
1519
  st.ui = <PyObject *>ctx
1510
1520
  try:
@@ -26,10 +26,10 @@ def test_run_quit_and_redraw():
26
26
  app = cui.App()
27
27
  frames = []
28
28
 
29
- def frame(ctx):
30
- frames.append(ctx.frame_count)
31
- ctx.request_wakeup(0.01)
32
- ui = cui.UI(ctx)
29
+ def frame(ui):
30
+ assert isinstance(ui, cui.UI)
31
+ frames.append(ui.context.frame_count)
32
+ ui.context.request_wakeup(0.01)
33
33
  with ui.column(pad=8):
34
34
  ui.heading("trampoline")
35
35
  if len(frames) >= 3:
@@ -42,8 +42,8 @@ def test_run_quit_and_redraw():
42
42
  def test_exception_in_frame_stops_the_loop_and_reraises():
43
43
  app = cui.App()
44
44
 
45
- def frame(ctx):
46
- ctx.request_wakeup(0.01)
45
+ def frame(ui):
46
+ ui.context.request_wakeup(0.01)
47
47
  raise RuntimeError("from the frame")
48
48
 
49
49
  with pytest.raises(RuntimeError, match="from the frame"):
@@ -78,8 +78,8 @@ def test_the_loop_releases_the_gil():
78
78
  thread.start()
79
79
  start = time.perf_counter()
80
80
 
81
- def frame(ctx):
82
- ctx.request_wakeup(0.005)
81
+ def frame(ui):
82
+ ui.context.request_wakeup(0.005)
83
83
  if time.perf_counter() - start > 0.3:
84
84
  app.quit()
85
85
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes