我建立與視網膜顯示器的MacBook Pro的pyside應用程序,這是我的安裝文件:cxfreeze生產上的MacBook Pro模糊GUI與視網膜顯示
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os", "sys", "PySide", "datetime", "subprocess"], "excludes": ["tkinter"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
options = {
'build_exe': {
'includes': 'atexit'
}
}
executables = [
Executable('countdown.py', base=base)
]
setup( name = "Countdown",
version = "0.1",
description = "Countdown timer",
options = options,
executables = executables)
然後,我建我的應用程序:
python3.3 setup.py bdist_mac
的countdown_0.1.app工作正常,除了GUI是一個有點模糊:
比直接執行countdown.py時:
我很奇怪,爲什麼他們看起來如此不同?
這是奇異的。應用程序包中必須有一些元數據來控制它。 – 2014-09-18 21:36:01