Opening and closing windows by calling a function?
<p>The idea is that I would have two or three different windows and I would like to open and close them automatically by calling a function (separate functions to open and close each window). The program itself would be running in the background but when a certain event happens it would call the window opening function. On another event the window would close, or window #2 would open etc.</p>

<p>That's the general idea anyway. Right now I would settle for one window I could open by calling a function. So in a nutshell a function that opens a window but lets the program run in the background waiting for a command to destroy the window. </p>

<p>Is it even possible to do that? </p>

<p>I've searched for tkinter solutions, none have worked so far. The reason for tkinter is because wxpython won't close a window unless you move the mouse over it.</p>

<p>Additionally, in the end I would be making borderless windows that are always on top of everything else. I have a somewhat suitable code for that already but it's nothing definitive.</p>

<p>PS. Yes I know it's a poorly composed question. That's why I'm asking...</p>
