Skip to content

Commit

Permalink
Added versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilkhanna committed Aug 3, 2022
1 parent df6a85d commit 0b5a119
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ class Project:
def main(self):
mainModel = MainModel()
mainController = MainController(mainModel)
mainWindow = MainUI('Porty', mainController)
mainWindow = MainUI('Portty', mainController)
mainWindow.launch()
2 changes: 2 additions & 0 deletions project/__version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

__version__ = '0.1.0'
6 changes: 4 additions & 2 deletions project/view/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime
import PySimpleGUI as gui
from project.controller.maincontroller import MainController
from project.__version import __version__
import os
import sys
bundle_dir = getattr(sys, '_MEIPASS', os.getcwd())
Expand Down Expand Up @@ -122,7 +123,7 @@ def __init__(self, title: str, controller: MainController) -> None:
gui.Column(console_column, expand_x=True, expand_y=True),
]
]
self._ui = gui.Window(title, self._layout, resizable=True,
self._ui = gui.Window(title + ' - ' + __version__, self._layout, resizable=True,
icon=ICON_FILE_PATH)
gui.cprint_set_output_destination(self._ui, self.KEY_CONSOLE)
self._isConnected = False
Expand Down Expand Up @@ -192,8 +193,9 @@ def update_console(self, msg, isTX=False):

def about_popup(self):
gui.popup('Serial Port Gui Tool',
'Sahil Khanna',
'Author - Sahil Khanna',
'https://github.com/sahilkhanna/sp-ui-tool',
title='Portty' + ' - ' + __version__,
grab_anywhere=True,
icon=ICON_FILE_PATH)

Expand Down

0 comments on commit 0b5a119

Please sign in to comment.