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