| 178 | painter.end() |
| 179 | |
| 180 | def _init_pixmap(self): |
| 181 | # k������ |
| 182 | self._pixmap = QPixmap( |
| 183 | self.width() - self._CONST_SETTINGS['price_pixmap_width'], |
| 184 | self.height() - self._CONST_SETTINGS['timestamp_pixmap_height'] |
| 185 | ) |
| 186 | #self._pixmap.load("_no_data.png") |
| 187 | # �������ᣬi.e.ʱ�������� |
| 188 | self._timestamp_pixmap = QPixmap( |
| 189 | self.width() - self._CONST_SETTINGS['price_pixmap_width'], |
| 190 | self._CONST_SETTINGS['timestamp_pixmap_height'] |
| 191 | ) |
| 192 | self._timestamp_pixmap.fill(self, 0, 0) |
| 193 | # |
| 194 | # [zh] |
| 195 | # �������ᣬi.e.�۸������ |
| 196 | self._price_pixmap = QPixmap( |
| 197 | self._CONST_SETTINGS['price_pixmap_width'], |
| 198 | self.height() |
| 199 | ) |
| 200 | self._price_pixmap.fill(self, 0, 0) |
| 201 | |
| 202 | def load_k_line(self, data_file): |
| 203 | self._data = get_k_line_data_by_path(data_file)[:2000] |