diff --git a/countess/gui/icons/README.md b/countess/gui/icons/README.md new file mode 100644 index 0000000..e030aa0 --- /dev/null +++ b/countess/gui/icons/README.md @@ -0,0 +1,5 @@ +# CountESS icons + +* small icons by Nick Moore. + +* [Countess Portrait](./countess.gif) by Sayeh Gorjifard. diff --git a/countess/gui/icons/countess.gif b/countess/gui/icons/countess.gif new file mode 100644 index 0000000..2c1118f Binary files /dev/null and b/countess/gui/icons/countess.gif differ diff --git a/countess/gui/main.py b/countess/gui/main.py index cd46abf..6ea391d 100644 --- a/countess/gui/main.py +++ b/countess/gui/main.py @@ -17,7 +17,7 @@ from countess.gui.mini_browser import MiniBrowserFrame from countess.gui.tabular import TabularDataFrame from countess.gui.tree import FlippyCanvas, GraphWrapper -from countess.gui.widgets import ask_open_filename, ask_saveas_filename, info_button +from countess.gui.widgets import ask_open_filename, ask_saveas_filename, get_icon, info_button from countess.utils.pandas import concat_dataframes # import faulthandler @@ -492,6 +492,24 @@ def on_frame_configure(self, event): self.subframe.place(x=0, y=y, w=event.width, h=event.height - y) +class SplashScreen: + + def __init__(self, tk_root): + bg = "skyblue" + self.splash = tk.Toplevel(tk_root, bg=bg) + self.splash.attributes('-type', 'dialog') + + font = ("TkHeadingFont", 16, "bold") + tk.Label(self.splash, text=f"CountESS {VERSION}", font=font, bg=bg).grid(padx=10,pady=10) + tk.Label(self.splash, image=get_icon(tk_root, "countess"), bg=bg).grid(padx=10) + + self.splash.after(3500, self.destroy) + + def destroy(self): + self.splash.destroy() + + + def make_root(): try: import ttkthemes # pylint: disable=C0415 @@ -523,6 +541,7 @@ def make_root(): def main(): root = make_root() + SplashScreen(root) MainWindow(root, sys.argv[1] if len(sys.argv) > 1 else None) root.mainloop() diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 8cba9b2..a6d0bcb 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -8,6 +8,7 @@