Skip to content

Commit

Permalink
Change window icons
Browse files Browse the repository at this point in the history
  • Loading branch information
shape-warrior-t committed Dec 5, 2023
1 parent 03769c3 commit 0b59c64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ PyYAML~=6.0.1
SQLAlchemy~=2.0.23
h5py~=3.10.0
pandas~=2.1.3
pytest
matplotlib~=3.8.2
pytest~=7.4.3
matplotlib~=3.8.2
6 changes: 4 additions & 2 deletions src/astra/frontend/startup_screen.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""This module provides the GUI for Astra's startup screen."""

from tkinter import Button, Frame, Label, Tk, Toplevel
from tkinter import filedialog, font, messagebox, simpledialog, ttk, Event
from tkinter import BOTTOM, LEFT, X, Y
from tkinter import Button, Frame, Label, Tk, Toplevel
from tkinter import filedialog, font, messagebox, simpledialog, ttk, Event, PhotoImage

from astra.frontend.view import View
from astra.usecase.request_receiver import DataRequestReceiver

Expand All @@ -14,6 +15,7 @@ def __init__(self):
"""Initialize the screen, adding all the UI elements."""
super().__init__()
self.title('Astra')
self.iconphoto(True, PhotoImage(file='logo.png'))
self.state('zoomed')
self.controller = DataRequestReceiver()

Expand Down
5 changes: 3 additions & 2 deletions src/astra/frontend/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"""

import itertools
from tkinter import Frame
from tkinter import BOTH
from tkinter import ttk, Tk, Label
from tkinter import Frame, Label, Tk
from tkinter import ttk, PhotoImage

from astra.data.data_manager import DataManager
from .graphing_view import GraphingView
Expand Down Expand Up @@ -33,6 +33,7 @@ def __init__(self, device_name: str) -> None:
# Root frame of tkinter
super().__init__()
self.title(f'Astra - {device_name}')
self.iconphoto(True, PhotoImage(file='logo.png'))

# tab widget
tab_control = ttk.Notebook(self)
Expand Down

0 comments on commit 0b59c64

Please sign in to comment.