Skip to content

Commit

Permalink
Merge pull request #16 from Myoldmopar/FixIcon
Browse files Browse the repository at this point in the history
Use proper wm class in code and configure
  • Loading branch information
Myoldmopar committed Apr 6, 2023
2 parents 41693ec + a08f9f7 commit 7212bca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion energyplus_pet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NAME = "energyplus_pet"
NICE_NAME = "EnergyPlus P.E.T."
VERSION = "0.46"
VERSION = "0.47"
4 changes: 2 additions & 2 deletions energyplus_pet/configure.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from plan_tools.entry_point import EntryPoint
from energyplus_pet import NAME, NICE_NAME


def configure_cli() -> None:
source_dir = "energyplus_pet"
name = "energyplus_pet_gui"
description = "An EnergyPlus Parameter Estimation Tool"
nice_name = "EnergyPlus P.E.T."
s = EntryPoint(source_dir, name, nice_name, description, name)
s = EntryPoint(source_dir, name, NICE_NAME, description, NAME)
s.run()
4 changes: 2 additions & 2 deletions energyplus_pet/forms/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from plan_tools.runtime import fixup_taskbar_icon_on_windows

from energyplus_pet import NICE_NAME, VERSION
from energyplus_pet import NAME, NICE_NAME, VERSION
from energyplus_pet.forms.correction_detail_form import DetailedCorrectionFactorForm
from energyplus_pet.data_manager import CatalogDataManager
from energyplus_pet.equipment.base import BaseEquipment
Expand All @@ -38,7 +38,7 @@ def __init__(self):
The main window of the parameter estimation tool GUI workflow.
This window is an instance of a tk.Tk object
"""
super().__init__()
super().__init__(className=NAME)

# set some basic program information like title and an icon
self._program_name = NICE_NAME
Expand Down

0 comments on commit 7212bca

Please sign in to comment.