I think this is the new tab bar in 10.13 and 10.14. I don’t see it 10.11, and I don’t have a 10.12 machine handy.
I can replicate this – there is a Show Tab Bar and Show All Tabs added to the View menu in my app, and if I do Show Tab Bar it is shows the extra title-bar-looking item.
I think (but haven’t implemented the method yet) as a workaround to use PyObjC with the main window (which in my case is the only window I would worry about). The code would be the PyObjC version of something like is posted here https://stackoverflow.com/questions/39399553/how-do-i-disable-the-show-tab-bar-menu-option-in-sierra-apps :
In particular this code:
if([window respondsToSelector:@selector(setTabbingMode:)]) {
// this particular window doesn't support tabbing in Sierra.
[window setTabbingMode:NSWindowTabbingModeDisallowed];
}
``
to tell the window that it doesn’t support the new native tab bar.
I think the top level NSWindow handle is accessible from wxPython, just figuring out the syntax for the method call then is the trick.
This is a Mac only thing. My app doesn’t seem to show it by default, but I don’t have my Finder prefs set to show it.
The PyObjC bridge should be able access the ObjC runtime and do this. At least I think so. ?
(I just haven’t gotten around to doing this yet!!)
I have not looked to see if wxWidgets has a flag for this yet or not.
So this is nothing to do with whatever particular video card/etc. you have on a Mac - I think whether you see it by default depends upon your Finder preferences and those only apply to 10.13 and 10.14. The stackoverflow post also shows how to check the AppKit versioning to see if the OS has this capability (and I can do that in PyObjC).
Hubert Hickman
···
On Monday, April 1, 2019 at 5:02:32 PM UTC-5, Mel Tearle wrote:
Hi,
I upgraded to Mojave and it didn’t change anything - however, it may be my display.
I’ve a non-glare Mac mid-2012 which is 1680 by 1050 pixels thru a Intel HD 4000 graphics chip.
I didn’t see anything in assistive services and I’m pretty sure this is the only instance running.
Mel
On Monday, April 1, 2019 at 9:54:01 AM UTC-7, Robin Dunn wrote:
On Monday, April 1, 2019 at 4:35:47 AM UTC-7, Matt Newville wrote:
FWIW, I do not see that with OSX 10.14.3 (Mojave), Python 3.7, and wxPython 4.0.4, using Python 3.7 either from Python.org or from Anaconda.com. I do not see it in the demo or in other apps. Is it necessary for you to run a two-year old version of OSX?
I don’t see it in 10.12 either.
Mel, does your Mac have some non-standard or at least non-typical settings that might be causing this? Like perhaps some assistive services, or maybe the app is actually running on another machine as is shown in a virtual desktop or similar on your machine?
There has been a report of something similar on a specific Linux distro (but not on any others) https://github.com/wxWidgets/Phoenix/issues/698 but I doubt that it could be related since something like this would seem to be happening at a much lower level than the wxWidgets code and then you’re at the platform specific layers.
–
Robin