def app_icon(self): """ The app icon. Not available on Mac because app icons are handled by the OS there. """ if not is_mac(): return QIcon(self.get_resource('Icon.ico'))
def _create_resource_locator(self): if is_frozen(): executable_dir = dirname(sys.executable) if is_mac(): resources_dir = join(executable_dir, pardir, 'Resources') else: resources_dir = executable_dir return _ResourceLocator([resources_dir]) else: return _DevelopmentResourceLocator(self.__class__)
def app_icon(self): if not is_mac(): return QIcon(self.get_resource('Icon.ico'))