Skip to content

Commit

Permalink
repair automatic startup
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed May 9, 2024
1 parent 825df37 commit 51daadb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions dosview/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,23 @@ def __init__(self, args):
self.file_path = args.file_path
self.initUI()


self.plot_tab = None
self.airdos_tab = None

self.solve_startup_args()


def solve_startup_args(self):

if self.args.file_path:
print("Oteviram zalozku s logem")
self.openPlotTab()

if self.args.airdos:
print("Oteviram zalozku s airdosem")
self.openAirdosTab()

def updateStackedWidget(self):
print("Updating stacked widget")
print(self.tab_widget.count())
Expand Down Expand Up @@ -1142,15 +1156,6 @@ def initUI(self):

self.tab_widget = QTabWidget()


if self.args.file_path:
print("Oteviram zalozku s logem")
self.openPlotTab()

if self.args.airdos:
print("Oteviram zalozku s airdosem")
self.openAirdosTab()

self.tab_widget.setCurrentIndex(0)
self.tab_widget.setTabsClosable(True)

Expand Down Expand Up @@ -1234,11 +1239,6 @@ def main():

print(args)

if not args.file_path:
pass

print("...", args.file_path)

pg.setConfigOption('background', 'w')
pg.setConfigOption('foreground', 'gray')

Expand Down
2 changes: 1 addition & 1 deletion dosview/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
__version__ = "0.1.15"
__version__ = "0.1.16"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run(self):
setup(
name='dosview',
#version= dosview.__version__,
version="0.1.15",
version="0.1.16",
description='Dosview is a simple graphical log viewer and control interface for Universial Scientific Technologies (UST) dosimeters.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 51daadb

Please sign in to comment.