Hybrid console/GUI app only half works

As part of my efforts to learn wxPython I’m porting some of my personal utilities written using PyQt or PySide into wxPython.

For example, the attached program is designed to be used from the conole, e.g.,

ring.py 12:15 phone for lunch &

If it is after 12:15 the program should pop up a dialog with the given text; otherwise it should wait until 12:15 and then appear.

The first behavior occurs as expected. But the second — and most useful — doesn’t happen.

Is this doable?

ring.py (1.41 KB)