Thanks a lot for clarifying it for me. It runs perfectly now.<div>I should've used gtk.(message)dialog but I got terribly lost in the gtk documentation and so I missed it.</div><div><br><div><br><div class="gmail_quote">
2011/7/14 Mike Wey <span dir="ltr"><<a href="mailto:mike-wey@example.com">mike-wey@example.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
On 07/14/2011 07:53 AM, maarten van damme wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
when I leave destroy out the inputbox always stays visible even after<br>
I've pressed ok.<br>
here are the other files<br>
</div><a href="http://dl.dropbox.com/u/15024434/Main.d" target="_blank">http://dl.dropbox.com/u/<u></u>15024434/Main.d</a><div class="im"><br>
<a href="http://dl.dropbox.com/u/15024434/InputBox.d" target="_blank">http://dl.dropbox.com/u/<u></u>15024434/InputBox.d</a><br>
</div><a href="http://dl.dropbox.com/u/15024434/MessageBox.d" target="_blank">http://dl.dropbox.com/u/<u></u>15024434/MessageBox.d</a><br>
</blockquote>
<br>
I see you are calling Main.run twice, although you would only call it once it will work. But you'll also need to call Main.Quit twice, probably when the second 'Messagebox' is closed.<br>
<br>
This is because Main.run() runs the gtk eventloop and returns when Main.Quit is called.<br>
<br>
Yoe might also want to look at gtk.Dialog and gtk.MessageDialog for your "InputBox" and "MessageBox" respectively.<br>
gtk.Dialog has it's own run method which returns a response code when the user closes the dialog, by clicking ok/cancel/etc... or just closes it.<br>
<br>
-- <br><font color="#888888">
Mike Wey<br>
</font></blockquote></div><br></div></div>