<p>The <code>runs==False</code> looks wrong, but I think it should cause a compile error, not do something weird at runtime like C/C++ would.</p>

<p>You could try sticking <code>print("Quitting")</code> in the <code>if e.type == QUIT</code> block. If it prints "Quitting" when you press the close button, try replacing it with <code>sys.exit()</code> and see if it quits.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/issues/1005#issuecomment-213811819">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7nNd_XS_feUNwiJI4weQs37pN9zks5p6nCogaJpZM4IOQFY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1005#issuecomment-213811819"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>