Lines Matching refs:dc
209 dc = wx.BufferedPaintDC(self, self._Buffer)
211 dc = wx.AutoBufferedPaintDC(self)
212 dc.Background = wx.Brush(wx.WHITE)
213 self.DoDrawing(dc)
215 def DoDrawing(self, dc=None): argument
217 if dc is None:
219 dc = wx.BufferedDC(wx.ClientDC(self), self._Buffer)
221 dc = wx.AutoBufferedPaintDC(self)
222 dc.Background = wx.Brush(wx.WHITE)
224 dc.Clear()
265 dc.SetPen(wx.Pen(Marker.sColor))
266 dc.SetBrush(wx.Brush(Marker.sColor))
267 … dc.DrawRectangle(Marker.iStart + self.iEdges, Marker.iTop, Marker.iWidth, Marker.iHeight)
268 width, height = dc.GetTextExtent(Marker.sName)
271 dc.DrawText(Marker.sName, k, ((Marker.iTop+Marker.iHeight/2) - (height*.5)))
275 dc.SetPen(wx.Pen(EOS_BAR))
276 dc.SetBrush(wx.Brush(EOS_BAR))
277 … dc.DrawRectangle(Marker.iStart + self.iEdges, Marker.iTop, 1, Marker.iHeight)
278 width, height = dc.GetTextExtent(Marker.sName)
280 dc.DrawText(Marker.sName, k, ((Marker.iTop+Marker.iHeight/2) - (height*.5)))
282 dc.SetPen(wx.Pen(APP_BAR))
283 dc.SetBrush(wx.Brush(APP_BAR))
284 … dc.DrawRectangle(Marker.iStart + self.iEdges, Marker.iTop, 1, Marker.iHeight)
285 width, height = dc.GetTextExtent(Marker.sName)
288 dc.DrawText(Marker.sName, k, ((Marker.iTop+Marker.iHeight/2) - (height*.5)))
302 dc.SetFont(self.font)
306 dc.SetPen(wx.Pen('#5C5142'))
309 dc.DrawLine(k, self.iScaleTop, k, self.iScaleTop+8)
313 dc.DrawLine(k, self.iScaleTop, k, self.iScaleTop+4)
314 width, height = dc.GetTextExtent(str(num[j]))
318 dc.DrawText(str(num[j]), k, self.iScaleTop+8)
329 dc.SetPen(wx.Pen(PROGRESS_BAR))
330 dc.SetBrush(wx.Brush(PROGRESS_BAR))
331 dc.DrawRectangle(self.iEdges + iOffset, gHeight-6, till, 3)
341 dc = wx.BufferedDC(wx.ClientDC(self), self._Buffer)
343 dc = wx.AutoBufferedPaintDC(self)
344 dc.Background = wx.Brush(wx.WHITE)
354 dc.SetPen(wx.Pen(PROGRESS_BAR))
355 dc.SetBrush(wx.Brush(PROGRESS_BAR))
356 dc.DrawRectangle(self.iEdges + iOffset, gHeight-6, till, 3)