Skip to content

Commit 45b3f97

Browse files
committed
Added comments on the select boxes temporary fix used
in the Kivy OSR example, some links included.
1 parent 4687bac commit 45b3f97

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

  • cefpython/cef3/linux/binaries_64bit

cefpython/cef3/linux/binaries_64bit/kivy_.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,26 @@ def __init__(self, browserWidget):
521521

522522

523523
def _fix_select_boxes(self, frame):
524-
# See: http://marcj.github.io/jquery-selectBox/
524+
# This is just a temporary fix, until proper Popup widgets
525+
# painting is implemented (PET_POPUP in OnPaint). Currently
526+
# there is no way to obtain a native window handle (GtkWindow
527+
# pointer) in Kivy, and this may cause things like context menus,
528+
# select boxes and plugins not to display correctly. Although,
529+
# this needs to be tested. The popup widget buffers are
530+
# available in a separate paint buffer, so they could positioned
531+
# freely so that it doesn't go out of the window. So the native
532+
# window handle might not necessarily be required to make it work
533+
# in most cases (99.9%). Though, this still needs testing to confirm.
534+
# --
535+
# See this topic on the CEF Forum regarding the NULL window handle:
536+
# http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10851
537+
# --
538+
# See also a related topic on the Kivy-users group:
539+
# https://groups.google.com/d/topic/kivy-users/WdEQyHI5vTs/discussion
540+
# --
541+
# The javascript select boxes library used:
542+
# http://marcj.github.io/jquery-selectBox/
543+
# --
525544
# Cannot use "file://" urls to load local resources, error:
526545
# | Not allowed to load local resource
527546
print("_fix_select_boxes()")

0 commit comments

Comments
 (0)