Hybrid console/GUI app only half works

Mark:

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

You forgot the parentheses on Show. The event evaluates form.Show, but doesn't call it.
Replace
  timer.Bind(wx.EVT_TIMER, lambda _event: form.Show)
with
  timer.Bind(wx.EVT_TIMER, lambda _event: form.Show())

regards, Anders

You are quite right. It works perfectly now. Thank you!

···

On Thursday, 21 March 2019 12:37:12 UTC, Anders Munch wrote:

Mark:

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

You forgot the parentheses on Show. The event evaluates form.Show, but doesn’t call it.

Replace

    timer.Bind(wx.EVT_TIMER, lambda _event: form.Show)

with

    timer.Bind(wx.EVT_TIMER, lambda _event: form.Show())

regards, Anders