Changeset 943:fc1c41b8f42b
- Timestamp:
- 04/28/19 17:34:43 (6 years ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/cef.py
r924 r943 112 112 SIMBRIEF_RESULT_NONE, None) 113 113 114 def _onLoadEnd(self, browser, frame, http Code):114 def _onLoadEnd(self, browser, frame, http_code): 115 115 """Called when a page has been loaded in the SimBrief browser.""" 116 116 url = frame.GetUrl() 117 print("gui.cef.SimBriefHandler._onLoadEnd", http Code, url)118 if http Code>=300:117 print("gui.cef.SimBriefHandler._onLoadEnd", http_code, url) 118 if http_code>=300: 119 119 self._updateProgress(self._lastProgress, 120 120 SIMBRIEF_RESULT_ERROR_OTHER, None) … … 341 341 342 342 class OffscreenRenderHandler(object): 343 def GetRootScreenRect(self, browser, rect ):343 def GetRootScreenRect(self, browser, rect_out): 344 344 #print "GetRootScreenRect" 345 rect += [0, 0, 800, 600]345 rect_out += [0, 0, 800, 600] 346 346 return True 347 347 348 def GetViewRect(self, browser, rect ):348 def GetViewRect(self, browser, rect_out): 349 349 #print "GetViewRect" 350 rect += [0, 0, 800, 600]350 rect_out += [0, 0, 800, 600] 351 351 return True 352 352 … … 368 368 pass 369 369 370 def OnPaint(self, browser, paintElementType, dirtyRects,buffer, width, height):370 def OnPaint(self, browser, element_type, dirty_rects, paint_buffer, width, height): 371 371 #print "OnPaint", paintElementType, dirtyRects, buffer, width, height 372 372 pass
Note:
See TracChangeset
for help on using the changeset viewer.