Exemple #1
0
 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'))
Exemple #2
0
 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__)
Exemple #3
0
 def app_icon(self):
     if not is_mac():
         return QIcon(self.get_resource('Icon.ico'))