<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Thanks for your answer, but it is not what I meant.</p>
    <p>If look at the link I provided, you'll see that it is now
      possible to write Gtk3 apps in Javascript.</p>
    <p>For instance, the following is a simple Hello World in
      Javascript:</p>
    <pre style="box-sizing: border-box; font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; font-size: 12px; white-space: pre; margin: 0px; padding: 12px; line-height: normal; display: block; overflow: auto; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;"><span class="ch" style="box-sizing: border-box;">#!/usr/bin/gjs</span>

<span class="kr" style="box-sizing: border-box; font-weight: bold;">const</span> <span class="nx" style="box-sizing: border-box;">Gtk</span> <span class="o" style="box-sizing: border-box; font-weight: bold;">=</span> <span class="nx" style="box-sizing: border-box;">imports</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">gi</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">Gtk</span><span class="p" style="box-sizing: border-box;">;</span>
<span class="nx" style="box-sizing: border-box;">Gtk</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">init</span><span class="p" style="box-sizing: border-box;">(</span><span class="kc" style="box-sizing: border-box; font-weight: bold;">null</span><span class="p" style="box-sizing: border-box;">);</span>

<span class="kd" style="box-sizing: border-box; font-weight: bold;">let</span> <span class="nx" style="box-sizing: border-box;">win</span> <span class="o" style="box-sizing: border-box; font-weight: bold;">=</span> <span class="k" style="box-sizing: border-box; font-weight: bold;">new</span> <span class="nx" style="box-sizing: border-box;">Gtk</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">Window</span><span class="p" style="box-sizing: border-box;">();</span>
<span class="nx" style="box-sizing: border-box;">win</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">connect</span><span class="p" style="box-sizing: border-box;">(</span><span class="s2" style="box-sizing: border-box; color: rgb(221, 17, 68);">"delete-event"</span><span class="p" style="box-sizing: border-box;">,</span> <span class="nx" style="box-sizing: border-box;">Gtk</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">main_quit</span><span class="p" style="box-sizing: border-box;">);</span>
<span class="nx" style="box-sizing: border-box;">win</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">show_all</span><span class="p" style="box-sizing: border-box;">();</span>
<span class="nx" style="box-sizing: border-box;">Gtk</span><span class="p" style="box-sizing: border-box;">.</span><span class="nx" style="box-sizing: border-box;">main</span><span class="p" style="box-sizing: border-box;">();

</span></pre>
    Looks a lot like Python! But it's Javascript. I think this is pretty
    cool.<br>
    <br>
    Here's a tutorial:<br>
    <a moz-do-not-send="true"
      href="http://gjs-tutorial.readthedocs.io/en/latest/">http://gjs-tutorial.readthedocs.io/en/latest/</a><br>
    <br>
    And here's the API docs:<br>
    <a moz-do-not-send="true" href="http://devdocs.baznga.org/">http://devdocs.baznga.org/</a>
    (this is where we should aim to put sugar-toolkit-gtk)<br>
    <br>
    From my research yesterday it would appear we would need to find a
    way to generate a GIR file but I don't know how it all couples
    together.<br>
    <br>
    This is what I was asking if somebody knew.<br>
    <br>
    Hope I was more clear in my question now.<br>
    <br>
    Thanks in advance.<br>
    <br>
    Regards,<br>
    Sebastian<br>
    <br>
    <div class="moz-cite-prefix">On 21/09/17 10:03, Tony Anderson wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8fbffd3f-bfb1-4bbc-9468-f167a3f92b64@usa.net">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>cgi scripts <br>
      </p>
      <p><br>
      </p>
      <p>Tony<br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 09/21/2017 02:06 AM, Sebastian
        Silva wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:7cc054e1-7073-0bc8-2141-bfa29bb0aa9c@fuentelibre.org">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        <p>Hi,</p>
        <p>I've tinkered a little with <a moz-do-not-send="true"
            href="https://wiki.gnome.org/Projects/Gjs">gjs</a> and was
          wondering what would it take to access the sugar-toolkit-gtk3
          from Javascript (or Vala for that matter?).</p>
        <p>Thanks in advance to any pointers.</p>
        <p>Regards,</p>
        <p>Sebastian<br>
        </p>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Sugar-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sugar-devel@lists.sugarlabs.org" moz-do-not-send="true">Sugar-devel@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/sugar-devel" moz-do-not-send="true">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Sugar-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/sugar-devel">http://lists.sugarlabs.org/listinfo/sugar-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>