Confusing invisible window problem

Hi Steven,

I get a visible window when I run it (see attached screenshot). I've also
tried running it outside of Wing IDE and get the same results.

I'm running this with Python 2.3 and wxPython 2.5.3.1.

Cheers!!

Dermot Doran EMC
Sr Technical Support Engineer
Mobile: +31-6-55815258
Office: +353-21-4281500 (ext: 5474)

ghost_window_test.png.zip (18.5 KB)

···

-----Original Message-----
From: Purchase, Steven [mailto:steven.Purchase@uk.thalesgroup.com]
Sent: Monday, April 18, 2005 4:44 PM
To: 'wxPython-users@lists.wxwidgets.org'
Subject: [wxPython-users] Confusing invisible window problem

I've been working with wxPython for a few years on and off but a strange
problem has just cropped up.

Running a simple program such as:

---------------------------------
import wx

class FileSenderApp(wx.App):
  def __init__(self):
    wx.App.__init__(self, 0)

  def OnInit(self):
    self.frame = wx.Frame(None, -1, "blah blah")
    self.frame.Show(True)
    return 1

if __name__ == '__main__':
  app = FileSenderApp()
  app.MainLoop()
---------------------------------

...results in the app starting up and showing a sort of ghost window (on
Windows 2000 at least). It's invisible, listed under Alt-TAB, has claimed
the focus, is not listed on the task bar. It stays in its ghost state no
matter what I do with its size, position, style, etc. I can raise, refresh,
update, move... Nothing appears.

I can use Alt-SPACE and Maximise and the window does indeed become visible
and maximised. I can then use Restore and the window appears with the
position and size that I would expect.

If I Alt-TAB away it vanishes from the Alt-TAB list but the app continues to
run.

This also happens with many (but not all) of the samples, and well as some
of my previously working apps.

Since this problem appeared I have tried upgrading to 2.5.5.1 without
success. Can anyone suggest what I might be missing or what else I can do to
investigate this in more depth?

--
Steven Purchase

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
<<ghost_window_test.png.zip>>