With Werner's patient help I have the splash screen and login dialog
correctly working. However, when the login dialog is closed a small, empty
window is displayed rather than the larger window with the main frame and
included notebook.
I've run winpdb with a breakpoint at
class pwMainFrame(wx.Frame):
but when I step into this class I'm not seeing the error. I suspect the
issue arises at the end of the module:
class pwApp(wx.App, InspectionMixin):
def OnInit(self):
self.SetAppName("PermitWatch")
# Create and show the splash screen.
self._loginShown = False
splash = pwSplashScreen(caller=self)
return True
def showLogin(self):
if not self._loginShown:
self._loginShown = True
self.doShowLogin()
def doShowLogin(self):
with LoginDialog() as dlg:
dlg.ShowModal()
loginState = dlg.loginState
if loginState:
self.pwMainFrame = wx.Frame(None)
wx.GetApp().SetTopWindow(self.pwMainFrame)
self.pwMainFrame.Show()
if __name__ == '__main__':
app = pwApp()
app.MainLoop()
Advice on applying winpdb to find where the application falls off the
track is needed.
TIA,
Rich