Skip to content

Commit 005cbd3

Browse files
committed
Small change to simple_main.glade and the addition of the start of a proper command line program
1 parent ab0431c commit 005cbd3

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

att_calc.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/python
2+
3+
from optparse import OptionParser
4+
5+
import nistxcom as nx
6+
7+
if __name__ == '__main__':
8+
parser = OptionParser()
9+
10+
parser.add_option('-m','--mat', dest='mat_file', help='Save results a matlab file')
11+
parser.add_option('-e','--element',

simple_main.glade

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<property name="width_request">413</property>
77
<property name="visible">True</property>
88
<property name="title" translatable="yes">Simple Attenuation Calculator</property>
9+
<property name="resizable">False</property>
910
<signal name="destroy" handler="on_mainwindow_destroy"/>
1011
<child>
1112
<widget class="GtkVBox" id="vbox1">
@@ -76,7 +77,7 @@
7677
<child>
7778
<widget class="GtkLabel" id="label4">
7879
<property name="visible">True</property>
79-
<property name="label" translatable="yes">Material</property>
80+
<property name="label" translatable="yes">Element:</property>
8081
</widget>
8182
<packing>
8283
<property name="position">0</property>
@@ -202,7 +203,7 @@
202203
<child>
203204
<widget class="GtkLabel" id="label7">
204205
<property name="visible">True</property>
205-
<property name="label" translatable="yes">Thickness (m)</property>
206+
<property name="label" translatable="yes">Thickness (m):</property>
206207
</widget>
207208
<packing>
208209
<property name="position">0</property>
@@ -230,7 +231,7 @@
230231
<child>
231232
<widget class="GtkLabel" id="label8">
232233
<property name="visible">True</property>
233-
<property name="label" translatable="yes">Energy (MeV)</property>
234+
<property name="label" translatable="yes">Energy (MeV):</property>
234235
</widget>
235236
<packing>
236237
<property name="position">0</property>
@@ -308,7 +309,7 @@
308309
<child>
309310
<widget class="GtkLabel" id="label">
310311
<property name="visible">True</property>
311-
<property name="label" translatable="yes">Element</property>
312+
<property name="label" translatable="yes">Element:</property>
312313
</widget>
313314
<packing>
314315
<property name="position">0</property>
@@ -334,7 +335,7 @@
334335
<child>
335336
<widget class="GtkLabel" id="label10">
336337
<property name="visible">True</property>
337-
<property name="label" translatable="yes">Energy (MeV)</property>
338+
<property name="label" translatable="yes">Energy (MeV):</property>
338339
</widget>
339340
<packing>
340341
<property name="position">0</property>
@@ -364,7 +365,7 @@
364365
<child>
365366
<widget class="GtkLabel" id="label11">
366367
<property name="visible">True</property>
367-
<property name="label" translatable="yes">Absorption (%)</property>
368+
<property name="label" translatable="yes">Absorption (%):</property>
368369
</widget>
369370
<packing>
370371
<property name="position">0</property>
@@ -444,6 +445,7 @@
444445
<widget class="GtkStatusbar" id="statusbar1">
445446
<property name="visible">True</property>
446447
<property name="spacing">1</property>
448+
<property name="has_resize_grip">False</property>
447449
<child>
448450
<widget class="GtkLabel" id="statusbarlabel">
449451
<property name="visible">True</property>

0 commit comments

Comments
 (0)