diff --git a/pyInstaller/InstallerAppDelegate.py b/pyInstaller/InstallerAppDelegate.py index 49b1021c..01c00122 100755 --- a/pyInstaller/InstallerAppDelegate.py +++ b/pyInstaller/InstallerAppDelegate.py @@ -91,10 +91,12 @@ class InstallerAppDelegate(NSObject): try: call([os.path.join(McBopomofoPath, "Contents/MacOS/McBopomofo"), "install"]) except: - NSRunAlertPanel(NSLocalizedString("Failed to install McBopomofo!", ""), "", NSLocalizedString("OK", ""), None, None) + NSRunAlertPanel(NSLocalizedString("Failed to install McBopomofo!", ""), + NSLocalizedString("Failed to activate McBopomofo", ""), + NSLocalizedString("OK", ""), None, None) NSApp.terminate_(self) NSRunAlertPanel(NSLocalizedString("Done!", ""), - NSLocalizedString("OpenVanilla McBopomofo has been installed on your Mac.", ""), + NSLocalizedString("McBopomofo has been installed on your Mac.", ""), NSLocalizedString("OK", ""), None, None) NSApp.terminate_(self) @@ -103,9 +105,7 @@ class InstallerAppDelegate(NSObject): NSApp.terminate_(self) def applicationDidFinishLaunching_(self, sender): + NSApp.activateIgnoringOtherApps_(True) self.checkOSVerion() self.showLicenseWindow() - pass - - - + \ No newline at end of file diff --git a/pyInstaller/main.py b/pyInstaller/main.py index bf89767a..5609807c 100755 --- a/pyInstaller/main.py +++ b/pyInstaller/main.py @@ -4,8 +4,5 @@ import AppKit from PyObjCTools import AppHelper -# import modules containing classes required to start application and load MainMenu.nib import InstallerAppDelegate - -# pass control to AppKit AppHelper.runEventLoop()