Skip to content

Commit

Permalink
refactor(WelcomeFrame): correct wrapping of the welcome description l…
Browse files Browse the repository at this point in the history
…abel
  • Loading branch information
maugde committed Jul 18, 2024
1 parent 4ef2e5c commit 7a2a1c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/antares_web_installer/gui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def initialize_styles(self):
current_font = font.nametofont("TkDefaultFont").actual()

# titles
ttk.Style().configure("Title.TLabel", padding=(11, 11), wraplength=self.width, font=(current_font, 20))
ttk.Style().configure("Title.TLabel", padding=(11, 11), wraplength=self.width - 11*2, font=(current_font, 20))
# description
ttk.Style().configure("Description.TLabel", padding=(11, 5), wraplength=self.width, font=(current_font, 10))
ttk.Style().configure("Description.TLabel", padding=(11, 5), wraplength=self.width - 11*2, font=(current_font, 10))

def change_frame(self):
"""
Expand Down
4 changes: 0 additions & 4 deletions src/antares_web_installer/gui/widgets/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
from typing import TYPE_CHECKING

from antares_web_installer.shortcuts import get_homedir

from .button import CancelBtn, BackBtn, NextBtn, FinishBtn, InstallBtn


if TYPE_CHECKING:
from antares_web_installer.gui.view import WizardView

Expand Down Expand Up @@ -99,8 +97,6 @@ class WelcomeFrame(BasicFrame):
# button control
def __init__(self, master: tk.Misc, window: "WizardView", index: int, *args, **kwargs):
super().__init__(master, window, index, *args, **kwargs)
# global settings

# header content
header_content = ttk.Label(self.header, text="Welcome to Antares Web Installer", style="Title.TLabel")
header_content.pack(side="top", fill="x")
Expand Down

0 comments on commit 7a2a1c1

Please sign in to comment.