Changeset 943:fc1c41b8f42b


Ignore:
Timestamp:
04/28/19 17:34:43 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The signatures of some CEF callback functions are updated (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/cef.py

    r924 r943  
    112112                             SIMBRIEF_RESULT_NONE, None)
    113113
    114     def _onLoadEnd(self, browser, frame, httpCode):
     114    def _onLoadEnd(self, browser, frame, http_code):
    115115        """Called when a page has been loaded in the SimBrief browser."""
    116116        url = frame.GetUrl()
    117         print("gui.cef.SimBriefHandler._onLoadEnd", httpCode, url)
    118         if httpCode>=300:
     117        print("gui.cef.SimBriefHandler._onLoadEnd", http_code, url)
     118        if http_code>=300:
    119119            self._updateProgress(self._lastProgress,
    120120                                 SIMBRIEF_RESULT_ERROR_OTHER, None)
     
    341341
    342342class OffscreenRenderHandler(object):
    343     def GetRootScreenRect(self, browser, rect):
     343    def GetRootScreenRect(self, browser, rect_out):
    344344        #print "GetRootScreenRect"
    345         rect += [0, 0, 800, 600]
     345        rect_out += [0, 0, 800, 600]
    346346        return True
    347347
    348     def GetViewRect(self, browser, rect):
     348    def GetViewRect(self, browser, rect_out):
    349349        #print "GetViewRect"
    350         rect += [0, 0, 800, 600]
     350        rect_out += [0, 0, 800, 600]
    351351        return True
    352352
     
    368368        pass
    369369
    370     def OnPaint(self, browser, paintElementType, dirtyRects, buffer, width, height):
     370    def OnPaint(self, browser, element_type, dirty_rects, paint_buffer, width, height):
    371371        #print "OnPaint", paintElementType, dirtyRects, buffer, width, height
    372372        pass
Note: See TracChangeset for help on using the changeset viewer.