60 title = Label(self, text=
"TestEm0 empowered by Geant4Py\n\n\n")
61 title.grid(row=0, column=1, columnspan = 4)
64 particle_title = Label(self, text=
"Particle")
65 particle_title.grid(row=2, column=0)
67 particleFrame = Frame(self)
68 scrollbar2 = Scrollbar(particleFrame)
69 scrollbar2.pack(side = RIGHT, fill = Y)
70 self.
particleListBox = Listbox(particleFrame, yscrollcommand=scrollbar2.set, exportselection=FALSE,height = 6)
71 self.particleListBox.pack(side = LEFT)
72 for item
in particleList:
73 self.particleListBox.insert(END, item)
74 scrollbar2.config(command=self.particleListBox.yview)
75 particleFrame.grid(row=3, column=0)
76 self.particleListBox.select_set(0)
79 fblank = Frame(self,width = 40)
80 fblank.grid(row=3,column=1)
83 detmaterial_title = Label(self, text=
"Material")
84 detmaterial_title.grid(row=2, column=2)
86 materialFrame = Frame(self)
87 scrollbar = Scrollbar(materialFrame)
88 scrollbar.pack(side = RIGHT, fill = Y)
89 self.
materialListBox = Listbox(materialFrame, yscrollcommand=scrollbar.set, exportselection=FALSE, height = 6)
90 self.materialListBox.pack(side = LEFT, fill = Y)
91 for item
in materialList:
92 self.materialListBox.insert(END, item)
93 scrollbar.config(command=self.materialListBox.yview)
94 materialFrame.grid(row=3, column=2)
95 self.materialListBox.select_set(0)
98 fblank = Frame(self,width = 40)
99 fblank.grid(row=3,column=3)
102 fEnergy = Frame(self)
103 energyLabel = Label(self, text=
"Energy")
104 energyLabel.grid(row = 2, column = 4)
106 scrollbarEnergy = Scrollbar(fEnergy)
107 scrollbarEnergy.pack(side = RIGHT, fill = Y)
109 self.energyEntry.pack(side = TOP)
110 self.energyEntry.insert(0,
"1.0")
112 self.
energyListBox = Listbox(fEnergy, yscrollcommand=scrollbarEnergy.set,exportselection=FALSE,width=8,height = 5)
113 self.energyListBox.pack(side = BOTTOM )
114 for item
in enrgyList:
115 self.energyListBox.insert(END, item)
116 scrollbarEnergy.config(command=self.energyListBox.yview)
117 fEnergy.grid(row = 3, column = 4 )
118 self.energyListBox.select_set(0)
121 fblank = Frame(self,width = 40)
122 fblank.grid(row=3,column=5)
126 cutsLabel = Label(self, text=
"Cuts", width= 8)
127 cutsLabel.grid(row = 2, column = 6)
129 scrollbarCuts = Scrollbar(fCuts)
130 scrollbarCuts.pack(side = RIGHT, fill = Y)
132 self.cutsEntry.pack(side = TOP)
133 self.cutsEntry.insert(0,
"1.0")
135 self.
cutsListBox = Listbox(fCuts, width= 8 ,yscrollcommand=scrollbarCuts.set,exportselection=FALSE,height = 5)
136 self.cutsListBox.pack(side = BOTTOM )
137 for item
in cutsList:
138 self.cutsListBox.insert(END, item)
139 scrollbarCuts.config(command=self.cutsListBox.yview)
140 fCuts.grid(row = 3, column = 6 )
141 self.cutsListBox.select_set(0)
144 fblank = Frame(self,height = 40)
145 fblank.grid(row=4,column=0)
148 startBut = Button(self, bg=
"green", text=
"Start a run", command=self.
cmd_beamOn)
149 startBut.grid(row=5, column=2, sticky=W)
152 exitBut = Button(self, bg=
"grey", text=
"Exit", command=self.quit)
153 exitBut.grid(row=5, column=6, sticky=E)