@@ -39,8 +39,8 | |||||
39 | """ |
|
39 | """ | |
40 | Slot documentation goes here. |
|
40 | Slot documentation goes here. | |
41 | """ |
|
41 | """ | |
42 |
|
|
42 | var_Rpath = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly) | |
43 |
self.txtRpath.setText( |
|
43 | self.txtRpath.setText(var_Rpath) | |
44 |
|
44 | |||
45 |
|
45 | |||
46 |
|
46 | |||
@@ -121,16 +121,18 | |||||
121 | Slot documentation goes here. |
|
121 | Slot documentation goes here. | |
122 | """ |
|
122 | """ | |
123 | self.txtInfo.setText(str(index)) |
|
123 | self.txtInfo.setText(str(index)) | |
124 | var_StopDay_index=self.lstStopDay.currentIndex() |
|
124 | var_StopDay_index=self.lstStopDay.count() - self.lstStopDay.currentIndex() | |
125 | var_StopDay_index -= index |
|
|||
126 |
|
125 | |||
127 | self.lstStopDay.clear() |
|
126 | self.lstStopDay.clear() | |
128 |
|
127 | |||
129 | for i in self.var_list[index:]: |
|
128 | for i in self.var_list[index:]: | |
130 | self.lstStopDay.addItem(i) |
|
129 | self.lstStopDay.addItem(i) | |
131 |
|
130 | |||
132 | self.lstStopDay.setCurrentIndex(var_StopDay_index) |
|
131 | self.lstStopDay.setCurrentIndex(self.lstStopDay.count() - var_StopDay_index) | |
133 |
|
132 | self.txtInfo.append(str(var_StopDay_index)) | ||
|
133 | self.txtInfo.append(str(self.lstStopDay.count())) | |||
|
134 | ||||
|
135 | ||||
134 | @pyqtSignature("int") |
|
136 | @pyqtSignature("int") | |
135 | def on_lstStopDay_activated(self, index): |
|
137 | def on_lstStopDay_activated(self, index): | |
136 | """ |
|
138 | """ | |
@@ -138,11 +140,14 | |||||
138 | """ |
|
140 | """ | |
139 | self.txtInfo.setText(str(index)) |
|
141 | self.txtInfo.setText(str(index)) | |
140 | var_StartDay_index=self.lstStartDay.currentIndex() |
|
142 | var_StartDay_index=self.lstStartDay.currentIndex() | |
141 |
|
143 | |||
|
144 | var_end_index = self.lstStopDay.count() - index | |||
|
145 | ||||
142 | self.lstStartDay.clear() |
|
146 | self.lstStartDay.clear() | |
143 |
|
147 | |||
144 | for i in self.var_list[:index+1]: |
|
148 | for i in self.var_list[:len(self.var_list) - var_end_index + 1]: | |
145 | self.lstStartDay.addItem(i) |
|
149 | self.lstStartDay.addItem(i) | |
146 |
|
150 | |||
147 | self.lstStartDay.setCurrentIndex(var_StartDay_index) |
|
151 | self.lstStartDay.setCurrentIndex(var_StartDay_index) | |
148 | self.txtInfo.append(str(var_StartDay_index)) |
|
152 | self.txtInfo.append(str(var_StartDay_index)) | |
|
153 | self.txtInfo.append(str(self.lstStartDay.count())) |
General Comments 0
You need to be logged in to leave comments.
Login now