We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e121f7d commit bea0974Copy full SHA for bea0974
cefpython/browser.pyx
@@ -432,7 +432,7 @@ cdef class PyBrowser:
432
self.gwlStyle = GetWindowLong(hwnd, GWL_STYLE)
433
self.gwlExStyle = GetWindowLong(hwnd, GWL_EXSTYLE)
434
GetWindowRect(hwnd, &rect)
435
- self.windowRect = (rect.left, rect.top,
+ self.windowRect = (rect.left, rect.top,
436
rect.right, rect.bottom)
437
438
cdef int removeStyle, removeExStyle
@@ -456,7 +456,7 @@ cdef class PyBrowser:
456
top = monitorInfo.rcMonitor.top
457
right = monitorInfo.rcMonitor.right
458
bottom = monitorInfo.rcMonitor.bottom
459
- SetWindowPos(hwnd, NULL,
+ SetWindowPos(hwnd, NULL,
460
left, top, right-left, bottom-top,
461
SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED)
462
else:
@@ -490,7 +490,7 @@ cdef class PyBrowser:
490
if ret:
491
return (width, height)
492
493
- return ()
+ return (0, 0)
494
495
cpdef py_void SetSize(self, PaintElementType paintElementType,
496
int width, int height):
cefpython/cef1/windows/binaries/cefpython_py27.py
@@ -41,6 +41,9 @@ def QuitMessageLoop():
41
def Shutdown():
42
return None
43
44
+def GetModuleDirectory():
45
+ return ""
46
+
47
#
48
# Settings
49
@@ -805,7 +808,7 @@ def RenderHandler_OnPopupShow(browser, show):
805
808
def RenderHandler_OnPopupSize(browser, rect):
806
809
807
810
-def RenderHandler_OnPaint(browser, paintElementType, out_dirtyRects,
811
+def RenderHandler_OnPaint(browser, paintElementType, out_dirtyRects,
812
paintBuffer):
813
814
cefpython/cef1/windows/binaries/panda3d_.py
@@ -1,7 +1,7 @@
1
# CEF off-screen rendering using the Panda3D game engine:
2
# http://www.panda3d.org/
3
4
-# You need panda3D runtime that is compatible with python 2.7,
+# You need panda3D SDK that is compatible with python 2.7,
5
# version 1.8.0 comes by default with python 2.7.
6
7
# To use custom python (not the one provided with the SDK)
@@ -327,7 +327,12 @@ def __init__(self, browser, texture):
327
def OnPaint(self, browser, paintElementType, dirtyRects, buffer):
328
(width, height) = self.browser.GetSize(paintElementType)
329
img = self.texture.modifyRamImage()
330
- img.setData(buffer.GetString(mode="bgra", origin="bottom-left"))
+ if paintElementType == cefpython.PET_POPUP:
331
+ print("width=%s, height=%s" % (width, height))
332
+ elif paintElementType == cefpython.PET_VIEW:
333
+ img.setData(buffer.GetString(mode="bgra", origin="bottom-left"))
334
+ else:
335
+ raise Exception("Unknown paintElementType: %s" % paintElementType)
336
337
def GetViewRect(self, browser, rect):
338
return False
cefpython/cef1_api.py
cefpython/cython_includes/cef_types_wrappers.pxd
@@ -6,7 +6,8 @@ include "compile_time_constants.pxi"
from libcpp cimport bool as cpp_bool
8
from cef_string cimport cef_string_t
9
-from cef_types cimport cef_state_t
+IF CEF_VERSION == 3:
10
+ from cef_types cimport cef_state_t
11
12
cdef extern from "include/internal/cef_types_wrappers.h":
13
0 commit comments