Thanks! That build config looks quite a bit more involved than the spec I 
use :) 
https://github.com/marcelstoer/nodemcu-pyflasher/blob/master/build-on-mac.spec

On Thursday, April 8, 2021 at 9:46:12 AM UTC+2 Jesse Hopkins wrote:

> I came here searching for a different wxpython issue, but suspect I know 
> the problem here, as I ran into it a while back. You should set the 
> NSHighResolutionCapable flag in your info.plist file. You can do this in 
> the BUNDLE method using the info_plist command, or manually set it. Here's 
> an example from a program I maintain (where coll is the output of the 
> COLLECT):
>
> if opsys == 'Darwin':
>     app = BUNDLE(
>         coll,
>         name='RAW.app',
>         icon=raw_icon,
>         bundle_identifier='edu.bioxtas.raw',
>         info_plist=
>             {
>             'CFBundleVersion' : RAWGlobals.version,
>             'CFBundleShortVersionString' : RAWGlobals.version,
>             'LSBackgroundOnly' : '0',
>             'NSHighResolutionCapable' : True,
>             'NSPrincipleClass' : 'NSApplication',
>             'CFBundleDevelopmentRegion' : 'en_US',
>             'LSHasLocalizedDisplayName' : False,
>             'CFBundleDocumentTypes' : [
>                 {
>                     'CFBundleTypeName' : 'SAXS data file',
>                     'LSHandlerRank' : 'Default',
>                     'CFBundleTypeExtensions': ['out', 'fit', 'fir', 'rad',
>                         'int', 'dat', 'csv', 'sub', 'txt'],
>                     'CFBundleTypeRole' : 'Viewer'
>                 },
>                 {
>                     'CFBundleTypeName' : 'Image file',
>                     'LSHandlerRank' : 'Default',
>                     'CFBundleTypeExtensions': ['tif', 'tiff', 'nxs', 'edf',
>                         'ccdraw', 'img', 'imx_0', 'dkx_0', 'dxk_1', 'png',
>                         'mpa', 'mar1200', 'mar2400', 'mar3200', 'mar3600',
>                         'sfrm', 'dm3', 'xml', 'cbf', 'kccd', 'msk',
>                         'spr', 'h5', 'mccd', 'mar3450', 'npy', 'No'],
>                     'CFBundleTypeRole' : 'Viewer'
>                 },
>                 {
>                     'CFBundleTypeName' : 'LC data file',
>                     'LSHandlerRank' : 'Default',
>                     'CFBundleTypeExtensions': ['sec',],
>                     'CFBundleTypeRole' : 'Viewer'
>                 },
>             ],
>             },
>         )
>
> If it's already installed and you overwrite the .app, you might have to 
> force MacOS to update the changes, this set of commands should do it:
> /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
>  
> -f /Applications/<my_app>.app 
> /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
>  
> -kill -seed 
> /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister
>  
> -f /Applications -all local,user
>
> You may then have to right click on the .app, select ‘Get Info’ and 
> uncheck the box ‘Open in low resolution mode’.
>
> Hope that helps.
>
> - Jesse
>
> On Tuesday, February 2, 2021 at 10:42:47 AM UTC-6 mar...@frightanic.com 
> wrote:
>
>> For a GUI application built with wxPython I noticed the GUI becomes all 
>> blurry after it is compiled into a binary with PyInstaller. Tried both 3.6 
>> and 4.2 but the effect is largely the same.
>> Build environement: macOS Big Sur, same with previous versions
>>
>> Has one of you seen a similar behavior and/or an idea how to fix this?
>>
>> *Running Python app*
>> [image: Screen Shot 2021-02-01 at 22.56.33.png]
>>
>> ➜  NodeMCU-PyFlasher git:(master) ✗ python3 --version
>> Python 3.8.2
>>
>> *Running the binary*
>> [image: Screen Shot 2021-02-01 at 22.57.15.png]
>>
>> Thanks
>>
>

-- 
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 pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/e22f946a-ac97-4256-b419-e608c71eec50n%40googlegroups.com.

Reply via email to