<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mojo UI questions]]></title><description><![CDATA[<p dir="auto">Hi there. I'm looking to use some mojo for a little tool that involves very quickly (ideally) choosing a glyph. These comments are a bit like splitting hairs, but I hope you can see why.</p>
<ol>
<li>
<p dir="auto"><code>SelectGlyph()</code> doesn't quite behave the way I'd personally expect it to. Ideally it'd respond to the keyboard more accurately. And be case-sensitive. <a href="https://www.dropbox.com/s/zx1h4544kpw4p1k/SelectGlyph%28%29.mov?dl=0" rel="nofollow">Video</a></p>
</li>
<li>
<p dir="auto"><code>FindGlyph()</code> would benefit from having some of the ease of use of the <code>Jump To Glyph</code> feature. That is, the ability to just hit <em>Enter</em> on the fly. <code>FindGlyph()</code> seems to rely on <em>Tab</em>. May seem minor, but thinking about incorporating this into a script that would be used very often. <a href="https://www.dropbox.com/s/rbcdeg1c442ty2y/FindGlyph%28%29.mov?dl=0" rel="nofollow">Video</a></p>
</li>
<li>
<p dir="auto">When I hit <em>Cancel</em> on an <code>AskString()</code>, it still commits my input. <a href="https://www.dropbox.com/s/cs82kyf2d0v2qf3/AskString%28%29.mov?dl=0" rel="nofollow">Video</a></p>
</li>
<li>
<p dir="auto">I'm not sure how to work with <code>dontShowAgainYesOrNo()</code>. Or maybe I hit "don't show again" once and now don't know how to get it back. Would very much appreciate seeing a short example script with this in use.</p>
</li>
</ol>
<p dir="auto">TIA,<br />
Ryan</p>
]]></description><link>https://forum.robofont.com/topic/594/mojo-ui-questions</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 22:51:35 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/594.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Mar 2019 21:53:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mojo UI questions on Tue, 05 Mar 2019 09:48:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi there. I'm looking to use some mojo for a little tool that involves very quickly (ideally) choosing a glyph. These comments are a bit like splitting hairs, but I hope you can see why.</p>
<ol>
<li>
<p dir="auto"><code>SelectGlyph()</code> doesn't quite behave the way I'd personally expect it to. Ideally it'd respond to the keyboard more accurately. And be case-sensitive. <a href="https://www.dropbox.com/s/zx1h4544kpw4p1k/SelectGlyph%28%29.mov?dl=0" rel="nofollow">Video</a></p>
</li>
<li>
<p dir="auto"><code>FindGlyph()</code> would benefit from having some of the ease of use of the <code>Jump To Glyph</code> feature. That is, the ability to just hit <em>Enter</em> on the fly. <code>FindGlyph()</code> seems to rely on <em>Tab</em>. May seem minor, but thinking about incorporating this into a script that would be used very often. <a href="https://www.dropbox.com/s/rbcdeg1c442ty2y/FindGlyph%28%29.mov?dl=0" rel="nofollow">Video</a></p>
</li>
<li>
<p dir="auto">When I hit <em>Cancel</em> on an <code>AskString()</code>, it still commits my input. <a href="https://www.dropbox.com/s/cs82kyf2d0v2qf3/AskString%28%29.mov?dl=0" rel="nofollow">Video</a></p>
</li>
<li>
<p dir="auto">I'm not sure how to work with <code>dontShowAgainYesOrNo()</code>. Or maybe I hit "don't show again" once and now don't know how to get it back. Would very much appreciate seeing a short example script with this in use.</p>
</li>
</ol>
<p dir="auto">TIA,<br />
Ryan</p>
]]></description><link>https://forum.robofont.com/post/2115</link><guid isPermaLink="true">https://forum.robofont.com/post/2115</guid><dc:creator><![CDATA[ryan]]></dc:creator><pubDate>Tue, 05 Mar 2019 09:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to Mojo UI questions on Tue, 05 Mar 2019 09:48:41 GMT]]></title><description><![CDATA[<p dir="auto">I guess your first option is missing <code>enableTypingSensitivity</code> when creating the vanilla list internally...</p>
<pre><code class="language-python">import vanilla

w = vanilla.Window((400, 400))
w.l = vanilla.List((0, 0, 0, 0), sorted(CurrentFont().keys()), enableTypingSensitivity=True)
w.open()
</code></pre>
<p dir="auto"><code>FindGlyph</code> should indeed work directly when enter is pressed, added to the todo list.</p>
<p dir="auto"><code>AksString</code> should return <code>None</code> when cancel is hit.</p>
<hr />
<p dir="auto">There is global reset in the preferences for all <code>dontShowAgainYesOrNo</code> dialogs.</p>
<pre><code class="language-python">result = dontShowAgainYesOrNo("A title", "Are you sure about this question?", dontShowAgainKey="com.myDomain.myTool.myQuestion")
</code></pre>
<p dir="auto">hope this helps!<br />
(a public beta will be published soon!)</p>
]]></description><link>https://forum.robofont.com/post/2118</link><guid isPermaLink="true">https://forum.robofont.com/post/2118</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 05 Mar 2019 09:48:41 GMT</pubDate></item><item><title><![CDATA[Reply to Mojo UI questions on Thu, 07 Mar 2019 22:02:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the response, <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/1">@frederik</a>. Looking forward to playing with these things in the beta!</p>
]]></description><link>https://forum.robofont.com/post/2127</link><guid isPermaLink="true">https://forum.robofont.com/post/2127</guid><dc:creator><![CDATA[ryan]]></dc:creator><pubDate>Thu, 07 Mar 2019 22:02:44 GMT</pubDate></item></channel></rss>