Skip to content

Commit 7ce420e

Browse files
Add splash screen and app icon.
1 parent 09aafb8 commit 7ce420e

22 files changed

Lines changed: 25 additions & 6 deletions

stage5.4_fuller_application/pycasa/app/app.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
import logging
55

66
from pyface.tasks.api import TasksApplication, TaskFactory
7+
from pyface.api import SplashScreen
78
from ..ui.tasks.pycasa_task import PycasaTask
8-
9+
from ..ui.image_resources import app_icon
910
logger = logging.getLogger(__name__)
1011

1112

@@ -26,3 +27,11 @@ def _task_factories_default(self):
2627
factory=PycasaTask
2728
)
2829
]
30+
31+
def _icon_default(self):
32+
return app_icon
33+
34+
def _splash_screen_default(self):
35+
from pycasa.ui.image_resources import app_icon
36+
splash_screen = SplashScreen(image=app_icon)
37+
return splash_screen
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from pyface.api import ImageResource
2+
3+
app_icon = ImageResource('scipy_logo.png')
188 KB
Loading
4.93 KB
Loading
2.83 KB
Loading
1.58 KB
Loading
2.81 KB
Loading
2.73 KB
Loading
3.7 KB
Loading
2.07 KB
Loading

0 commit comments

Comments
 (0)