Пример #1
0
 def get_icon(self):
     """Returns a wx.Icon of the application's
     default icon"""
     if sys.platform != 'win32':
         return wx.IconFromBitmap(self.get_icon_bmp())
     icon = wx.Icon(pathfinder.winicon_path(), wx.BITMAP_TYPE_ICO)
     return icon
Пример #2
0
 def get_icon(self):
     """Returns a wx.Icon of the application's
     default icon"""
     if sys.platform != 'win32':
         return wx.IconFromBitmap(self.get_icon_bmp())
     icon = wx.Icon(pathfinder.winicon_path(), wx.BITMAP_TYPE_ICO)
     return icon
Пример #3
0
 def test_win_icon_path(self):
     """Verify correct main application icon path under Windows"""
     icon_path = os.path.join(self.app_path, 'resources', 'icons',
                              'a7117_64.ico')
     self.assertEqual(icon_path, pathfinder.winicon_path())
Пример #4
0
 def test_win_icon_path(self):
     """Verify correct main application icon path under Windows"""
     icon_path = os.path.join(self.app_path, 'resources', 'icons', 'a7117_64.ico')
     self.assertEqual(icon_path, pathfinder.winicon_path())