MCPcopy Create free account
hub / github.com/Image-Py/imagepy / on_idle

Method on_idle

imagepy/ui/canvas.py:157–174  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

155 self.reInitBuffer = True
156
157 def on_idle(self, event):
158 if not self.IsShown() or self.ips==None:return
159 if self.reInitBuffer:
160 self.initBuffer()
161 #print 'resized update'
162 self.update(True)
163 self.reInitBuffer = False
164 self.ips.dirty = False
165 print('resize')
166 if self.ips.scrchanged:
167 self.set_ips(self.ips)
168 self.ips.scrchanged = False
169 print('scr changed')
170 if self.ips.dirty != False:
171 #print 'normal update'
172 self.update(True)
173 self.ips.dirty = False
174 print('update')
175
176 def on_paint(self, event):
177 wx.BufferedPaintDC(self, self.buffer)

Callers 1

on_scrollMethod · 0.45

Calls 3

initBufferMethod · 0.95
updateMethod · 0.95
set_ipsMethod · 0.95

Tested by

no test coverage detected