Re: Question about bitmaps and retina / HiDPI

[email protected] Sat, 19 May 2018 14:03:29 -0700 (PDT)
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Hi Dietmar, thanks for the notes.  

I do have a python app frozen into a proper macOS application that indeed 
does have the "NSPrincipleClass", and yet still no luck.

Also the wxpython-users thread I posted a link to indicates that the guy 
got @2x working when he recompiled wxWidgets himself instead of using the 
wxPython stock build of it.  That made me wonder if it was possibly just 
that the wxUSE_IMAGE wasn't enabled.


On Saturday, May 19, 2018 at 5:36:02 AM UTC-7, Dietmar Schwertberger wrote:
>
> On 5/19/2018 4:34 AM, [email protected] <javascript:> wrote: 
> > Question 1: Should this work in wxPython?  Is there something I'm not 
> > doing right? 
>
> I have never done this as I don't regularly use Mac Os, so I can just 
> summarize what I have found when working on the wx backend for matplotlib. 
>
> Usually, for a C++ wx application, you would need to have a info.plist 
> file and define "NSPrincipalClass" to activate full retina support. I 
> don't know whether the @2 icons should work without that. Maybe you can 
> try to build wxPython with wxUSE_IMAGE, "compile" an executable and 
> define a info.plist for that. 
>
> See also the last messeages of this thread: 
> https://groups.google.com/forum/#!topic/wx-dev/en7oPeUiV9A 
>
>
>  From looking at e.g. the Qt backend of matplotlib, there must be a way 
> to enable Retina support for a Python program without info.plist, but 
> this is probably hidden deep inside the Qt sources. It would be great if 
> wxPython could support HiDPI displays as well. 
>
>
> Regards, 
>
> Dietmar 
>
>

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