Opened 8 years ago
Closed 8 years ago
#138 closed task (fixed)
Optimization code for detector.py
| Reported by: | yanll | Owned by: | yanll |
|---|---|---|---|
| Priority: | major | Milestone: | alpa |
| Component: | viewer | Version: | 0.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Parent ID: | Parent Tickets: | ||
| Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
| Billable?: | yes | Total Hours: | 0 |
Description
1 detector.py
self.buttonList=[131,132,133,# 0, 1, 2
231,232,233, # 3, 4, 5
322, # 6
331,332,333, # 7, 8, 9
341,342,343, #10,11,12
422, #13,
431,432,433, #14,15,16
441,442,443, #17,18,19
521,522,523, #20.21.22
531,532,533, #23,24,25
541,542,543, #26,27,28
621,622,623, #29,30,31
631,632,633, #32,33,34
641,642,643] #35,36,37
for i in range(len(self.buttonList)):
self.buttonList[i] = BankButton?(self,'img/module_off.png', _width, _height)
2
for i in range(len(self.buttonList)):
self.RadioGroup?.addButton(self.buttonList[i])
3
self.firstGrid.addWidget(self.buttonList[10], _nline, 6, 1,1)
4 def buttonChange(self):
for i in range (len(self.buttonList)):
self.buttonList[i].setIcon(QtGui?.QIcon('img/module_off.png'))
Subtickets
Child Tickets
Change History (1)
comment:1 Changed 8 years ago by yanll
- Resolution set to fixed
- Status changed from new to closed
