Hi!
I'm experiencing the same issue. I'm trying to find a work around for this. 
So far I've found that triggering a menu item when the app starts will show 
the menu bar, how ever it will not be responding to clicks.
 
#Create a dummy action for demonstration.

self.dummyAction = QtGui.QAction("Dummy Action", self,
shortcut=QtGui.QKeySequence.Open,
triggered=self.showWindowOSXHack)

#Add action to the menu then

self.windowMenu.addAction(self.showMainWindowAction)


#Call os.system to inject a key sequence into the app.


def showWindowOSXHack(self):
os.system("""osascript -e 'tell application "System Events" to tell first 
process whose frontmost to keystroke "o" using command down'""")

#Where Command+O is the standard open command for OsX

The menu is shown, but still not responding to any clicks. There might be 
some other System Event I could inject that will show the menu bare and 
make it active, but haven't found one yet.


On Sunday, January 26, 2014 5:28:09 PM UTC+1, Georg Holzmann wrote:
>
> Hallo!
>
> On OS X GUI apps, the default value of LSBackgroundOnly in the app bundles 
> Info.plist is True, as explained here:
> https://groups.google.com/forum/#!msg/pyinstaller/f3800Jc0rr0/rFTwSOSESVAJ
>
> However, a side effect of it is, that the menu bar is not shown at first 
> startup on Maverick (on my Mountain Lion machine it worked as it should):
> - click on the generated App Bundle in Finder
> - then the App launches but the menu bar of the Finder is still display
> - if I change now the window and then go back to my App window, the menu 
> bar finally appears
>
> If I set LSBackgroundOnly=False, the menu bar appears immediatly at 
> startup, but two app icons are shown (known behaviour).
> BTW: I use wxpython in my example with pyinstaller 2.1.
>
> Does anyone else experience the same problem and/or is there maybe a 
> workaround to get the menu bar in focus?
>
> Thanks a lot for any answers,
> LG
> Georg
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to