From e37a28a0de36b98a02e03ea11c9a75a38d65ae10 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 6 Sep 2002 20:03:03 +0000 Subject: [PATCH] The standalone PyShell and PyCrust apps need to set the focus to the shell windows. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/PyCrust/PyCrustApp.py | 1 + wxPython/wxPython/lib/PyCrust/PyShellApp.py | 1 + 2 files changed, 2 insertions(+) diff --git a/wxPython/wxPython/lib/PyCrust/PyCrustApp.py b/wxPython/wxPython/lib/PyCrust/PyCrustApp.py index de283bb971..d262fbea91 100755 --- a/wxPython/wxPython/lib/PyCrust/PyCrustApp.py +++ b/wxPython/wxPython/lib/PyCrust/PyCrustApp.py @@ -18,6 +18,7 @@ class App(wxApp): self.crustFrame = CrustFrame(locals=locals) self.crustFrame.SetSize((750, 525)) self.crustFrame.Show(true) + self.crustFrame.crust.shell.SetFocus() self.SetTopWindow(self.crustFrame) # Add the application object to the sys module's namespace. # This allows a shell user to do: diff --git a/wxPython/wxPython/lib/PyCrust/PyShellApp.py b/wxPython/wxPython/lib/PyCrust/PyShellApp.py index d38d855a5e..ff60f5f845 100755 --- a/wxPython/wxPython/lib/PyCrust/PyShellApp.py +++ b/wxPython/wxPython/lib/PyCrust/PyShellApp.py @@ -18,6 +18,7 @@ class App(wxApp): self.shellFrame = ShellFrame(locals=locals) self.shellFrame.SetSize((750, 525)) self.shellFrame.Show(true) + self.shellFrame.shell.SetFocus() self.SetTopWindow(self.shellFrame) # Add the application object to the sys module's namespace. # This allows a shell user to do: -- 2.47.2