Esempio n. 1
0
    def OnPaint(self,event):
        dc = wxPaintDC(self) # <<-- this is completely retarted
	if not self.init:
            
	    sr_py.run_viewer_thread(self.sci_context)
            self.init = 1
            
            wxYield()
            #wxYield()
            #time.sleep(1)
	    
	#self.OnDraw()
	return
Esempio n. 2
0
 def on_eventbox_map_event(self, widget, event) :
   #print self.da_
   sr_py.run_viewer_thread(self.da_.sci_context)