MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / _init_pixmap

Method _init_pixmap

quantdigger/backup/pyqt_kline/CandleWidget.py:180–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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]

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected