Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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())
Exemplo n.º 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())