python - PyInstaller Tkinter window low resolution in App bundle, but not in app program -
i think i'm missing obvious can't figure out myself.
i'm building mac app python 2.7 using pyinstaller (running dev3.3 version). app works fine, no issues. @ beginning there's small window updates built using tkinter.
after building app pyinstaller (running oneflie option) 2 files( ls -al
outcome):
-rwxr-xr-x 1 karoldra staff 62756614 8 lis 11:08 mac drwxr-xr-x 3 karoldra staff 102 8 lis 11:09 mac.app
here's structure of folder:
- mac
- mac.app
- contents
- frameworks
- info.plist
- macos
- mac
- resources
- myicon.icns
- contents
basically - mac.app package contains same mac file main folder.
the issues different resolution in tkinter window depending on file run. here's sample of tkiter window:
- the top 1 run
mac
file - the bottom 1 run
mac.app
file
as can see bottom ones resolution lower reason...
can tell me why happening , how solve issue?
eventually found answer by...carefully reading docs ;) there's 1 line solve problem:
for example, when use pyqt5, can set nshighresolutioncapable true let app work in retina screen
in case else seeing problem on macos here's answer:
my spec file missing high resolution setting specified info_plist
parameter. here's example:
app = bundle(exe, name='myscript.app', icon=none, bundle_identifier=none info_plist={ 'nshighresolutioncapable': 'true' }, )
hope else too!!! :)
Comments
Post a Comment