4 comments

  • simonw51 minutes ago
    One-liner with uv to try this out:<p><pre><code> uv run --with pywry python &lt;&lt;&#x27;EOF&#x27; app = PyWry() def on_button_click(data, event_type, label): &quot;&quot;&quot;Called when the button is clicked.&quot;&quot;&quot; app.emit(&quot;pywry:set-content&quot;, {&quot;id&quot;: &quot;greeting&quot;, &quot;text&quot;: &quot;Button was clicked!&quot;}, label) html = &quot;&quot;&quot; &lt;div style=&quot;padding: 20px; text-align: center;&quot;&gt; &lt;h1 id=&quot;greeting&quot;&gt;Click the button below&lt;&#x2F;h1&gt; &lt;button onclick=&quot;window.pywry.emit(&#x27;app:button-click&#x27;, {time: Date.now()})&quot;&gt; Click me! &lt;&#x2F;button&gt; &lt;&#x2F;div&gt; &quot;&quot;&quot; app.show( html, callbacks={&quot;app:button-click&quot;: on_button_click}, ) app.block() EOF </code></pre> Looks promising. Here&#x27;s a screenshot: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;simonw&#x2F;092386c894d3a0deb2572f3155552183?permalink_comment_id=6123288#gistcomment-6123288" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;simonw&#x2F;092386c894d3a0deb2572f3155552...</a>
  • simonw43 minutes ago
    I had a poke around in the wheel and it looks like a lot of the heavy lifting is done by this 30.8MB binary file:<p>pywry&#x2F;_vendor&#x2F;pytauri_wheel&#x2F;ext_mod.cpython-310-darwin.so<p>Looks like that&#x27;s vendored from this project: <a href="https:&#x2F;&#x2F;github.com&#x2F;pytauri&#x2F;pytauri" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pytauri&#x2F;pytauri</a>
  • swiftcoder50 minutes ago
    Maybe I&#x27;m an old fart, but &quot;rendering engine&quot; used to mean 3D graphics. This is actually a cross-platform UI toolkit? Or rather a web toolkit than can be deployed to desktop via Tauri?
  • nycdatasci1 hour ago
    Interesting project. The examples page needs screenshots.