Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Jeandemange <[email protected]>
  • Loading branch information
jeandemanged committed Nov 10, 2024
1 parent 9c0b52d commit 613105b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion yagat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
import os

__version__ = '0.0.1'
__version__ = '0.1.0-dev'


def get_app_path() -> os.path:
Expand Down
6 changes: 4 additions & 2 deletions yagat/frames/impl/splash_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@
import os
import tkinter as tk

from yagat import get_app_path
from yagat import get_app_path, __version__
from yagat.utils import get_centered_geometry


class SplashScreen(tk.Frame):
def __init__(self, parent, *args, **kwargs):
tk.Frame.__init__(self, parent, *args, **kwargs)
parent.overrideredirect(True)
parent.geometry(get_centered_geometry(parent, 403, 302)) # "518x134+50+50"
parent.geometry(get_centered_geometry(parent, 403, 302))
splash_canvas = tk.Canvas(parent)
splash_canvas.pack(fill="both", expand=True)
self.img = tk.PhotoImage(file=os.path.join(get_app_path(), 'images/splash.png'))
splash_canvas.create_image(0, 0, image=self.img, anchor=tk.NW)
splash_canvas.create_text(10, 10, text='Yet Another Grid Analysis Tool', fill="black", anchor=tk.NW)
splash_canvas.create_text(10, 30, text=f'YAGAT v{__version__}', fill="black", anchor=tk.NW)


if __name__ == "__main__":
Expand Down
4 changes: 3 additions & 1 deletion yagat/menus/impl/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ def __init__(self, parent, *args, **kwargs):
self.parent = parent
parent.add_cascade(label="Help", menu=self)
self.add_command(label='About...', command=lambda: showinfo('About YAGAT',
'YAGAT v' + yagat.__version__ +
'Yet Another Grid Analysis Tool' +
'\nhttps://github.com/jeandemanged/yagat/wiki' +
'\nYAGAT v' + yagat.__version__ +
'\nBased on PyPowSyBl v' + pypowsybl.__version__))

0 comments on commit 613105b

Please sign in to comment.