File tree 3 files changed +16
-16
lines changed
3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -1092,9 +1092,23 @@ def __init__(self, args):
1092
1092
self .file_path = args .file_path
1093
1093
self .initUI ()
1094
1094
1095
+
1095
1096
self .plot_tab = None
1096
1097
self .airdos_tab = None
1097
1098
1099
+ self .solve_startup_args ()
1100
+
1101
+
1102
+ def solve_startup_args (self ):
1103
+
1104
+ if self .args .file_path :
1105
+ print ("Oteviram zalozku s logem" )
1106
+ self .openPlotTab ()
1107
+
1108
+ if self .args .airdos :
1109
+ print ("Oteviram zalozku s airdosem" )
1110
+ self .openAirdosTab ()
1111
+
1098
1112
def updateStackedWidget (self ):
1099
1113
print ("Updating stacked widget" )
1100
1114
print (self .tab_widget .count ())
@@ -1142,15 +1156,6 @@ def initUI(self):
1142
1156
1143
1157
self .tab_widget = QTabWidget ()
1144
1158
1145
-
1146
- if self .args .file_path :
1147
- print ("Oteviram zalozku s logem" )
1148
- self .openPlotTab ()
1149
-
1150
- if self .args .airdos :
1151
- print ("Oteviram zalozku s airdosem" )
1152
- self .openAirdosTab ()
1153
-
1154
1159
self .tab_widget .setCurrentIndex (0 )
1155
1160
self .tab_widget .setTabsClosable (True )
1156
1161
@@ -1234,11 +1239,6 @@ def main():
1234
1239
1235
1240
print (args )
1236
1241
1237
- if not args .file_path :
1238
- pass
1239
-
1240
- print ("..." , args .file_path )
1241
-
1242
1242
pg .setConfigOption ('background' , 'w' )
1243
1243
pg .setConfigOption ('foreground' , 'gray' )
1244
1244
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
# -*- coding: UTF-8 -*-
3
- __version__ = "0.1.15 "
3
+ __version__ = "0.1.16 "
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def run(self):
37
37
setup (
38
38
name = 'dosview' ,
39
39
#version= dosview.__version__,
40
- version = "0.1.15 " ,
40
+ version = "0.1.16 " ,
41
41
description = 'Dosview is a simple graphical log viewer and control interface for Universial Scientific Technologies (UST) dosimeters.' ,
42
42
long_description = long_description ,
43
43
long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments