Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
cefpython/cefpython/cef1/windows/binaries/wxpython.html at cefpython31 · Ngahu/cefpython · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Ngahu
/
cefpython
Public
forked from
cztomczak/cefpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
cefpython31
Breadcrumbs
cefpython
/
cefpython
/
cef1
/
windows
/
binaries
/
wxpython.html
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
172 lines (117 loc) · 4.79 KB
cefpython31
Breadcrumbs
cefpython
/
cefpython
/
cef1
/
windows
/
binaries
/
wxpython.html
Copy path
Top
File metadata and controls
Code
Blame
172 lines (117 loc) · 4.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!doctype html
>
<
html
>
<
head
>
<
meta
charset
=
utf-8
>
<
title
>
CefSimple (utf-8: ąś)
</
title
>
<
style
>
body
{
font
:
13
px
Segoe UI
,
Arial;
line-height
:
1.4
em
; }
pre
{
background
:
#
ddd
;
font
:
12
px
Consolas
,
Courier New; }
</
style
>
</
head
>
<
body
>
Use mouse context menu to go Back/Forward in history navigation.
<
h3
>
Google Search
</
h3
>
<
a
href
="
http://www.google.com/
"
>
http://www.google.com/
</
a
>
<
h3
>
User agent
</
h3
>
<
script
>
document
.
write
(
navigator
.
userAgent
)
</
script
>
<
h3
>
Popup
</
h3
>
<
a
href
="
javascript:window.open('wxpython.html')
"
>
window.open('wxpython.html')
</
a
>
<
h3
>
RequestHandler tests
</
h3
>
<
p
>
See messages in the console.
</
p
>
OnBeforeBrowse() - navigate to see message:
<
a
href
="
wxpython.html
"
>
wxpython.html
</
a
>
<
br
>
<
br
>
OnBeforeBrowse() / OnBeforeResourceLoad() - test request.GetPostData()
and request.SetPostData():
submit a form:
<
a
href
="
https://accounts.google.com/ServiceLogin
"
>
https://accounts.google.com/ServiceLogin
</
a
>
,
upload a file:
<
a
href
="
http://encodable.com/uploaddemo/
"
>
http://encodable.com/uploaddemo/
</
a
>
<
br
>
<
br
>
OnBeforeResourceLoad() - try loading nonexistent css file locally:
<
a
href
="
javascript:LoadCssFile('nonexistent.css')
"
>
LoadCssFile('nonexistent.css')
</
a
>
<
script
>
function
LoadCssFile
(
url
)
{
var
cssFile
=
document
.
createElement
(
"link"
)
cssFile
.
setAttribute
(
"rel"
,
"stylesheet"
)
cssFile
.
setAttribute
(
"type"
,
"text/css"
)
cssFile
.
setAttribute
(
"href"
,
url
)
document
.
getElementsByTagName
(
"head"
)
[
0
]
.
appendChild
(
cssFile
)
}
</
script
>
<
br
>
<
br
>
OnBeforeResourceLoad() - try replacing a resource on the fly:
<
a
href
="
javascript:LoadCssFile('replace-on-the-fly.css')
"
>
LoadCssFile('replace-on-the-fly.css')
</
a
>
(css content: body { color: red; })
<
br
>
<
br
>
OnResourceRedirect() - try loading this url:
<
a
href
="
http://tinyurl.com/google404redirect
"
>
http://tinyurl.com/google404redirect
</
a
>
<
br
>
<
br
>
OnResourceResponse() - try loading nonexistent css file via http:
<
a
href
="
javascript:LoadCssFile('http://www.google.com/404.css')
"
>
LoadCssFile('http://www.google.com/404.css')
</
a
>
<
br
>
<
br
>
OnResourceResponse() - try filtering content of the resource:
<
a
href
="
javascript:LoadCssFile('content-filter/replace-on-the-fly.css')
"
>
LoadCssFile('content-filter/replace-on-the-fly.css')
</
a
>
(new css content: body { color: green; } and body h3 { color: orange; } )
<
br
>
<
br
>
<
h3
>
WebRequest test
</
h3
>
See the console for messages.
<
br
>
<
a
href
="
javascript:external.WebRequest('https://code.google.com/robots.txt')
"
>
external.WebRequest('https://code.google.com/robots.txt')
</
a
>
<
h3
>
Frame.CallFunction() test
</
h3
>
<
script
>
function
MyFunction
(
param1
,
param2
,
param3
,
param4
)
{
alert
(
"MyFunction() called\nparam1="
+
JSON
.
stringify
(
param1
)
+
"\nparam2="
+
JSON
.
stringify
(
param2
)
+
"\nparam3="
+
JSON
.
stringify
(
param3
)
+
"\nparam4="
+
JSON
.
stringify
(
param4
)
)
}
</
script
>
<
a
href
="
javascript:external.DoCallFunction()
"
>
external.DoCallFunction()
</
a
>
<
h3
>
Cookie tests
</
h3
>
See messages in the console.
<
br
>
<
br
>
RequestHandler.GetCookieManager() - an example of having an unique
cookie manager for each browser. Visit
<
a
href
="
http://www.html-kit.com/tools/cookietester/
"
>
http://www.html-kit.com/tools/cookietester/
</
a
>
and set some cookie,
then go back to this page using the context menu and open a
<
a
href
="
javascript:window.open('http://www.html-kit.com/tools/cookietester/')
"
>
new popup window
</
a
>
, the cookie should not appear in the popup browser window.
<
br
>
<
br
>
CookieManager.VisitAllCookies() - visit all cookies:
<
a
href
="
javascript:external.VisitAllCookies()
"
>
external.VisitAllCookies()
</
a
>
(note: visit some http:// webpage first, otherwise cookie manager is not
yet created)
<
br
>
<
br
>
CookieManager.VisitUrlCookies("http://www.html-kit.com/tools/cookietester/")
- visit a subset of cookies given the url, test:
<
a
href
="
javascript:external.VisitUrlCookies()
"
>
external.VisitUrlCookies()
</
a
>
<
br
>
<
br
>
CookieManager.SetCookie("http://www.html-kit.com/tools/cookietester/",
{name:"Created_Via_Python", value:"yeah really"}) - create the cookie:
<
a
href
="
javascript:external.SetCookie()
"
>
external.SetCookie()
</
a
>
<
br
>
<
br
>
CookieManager.DeleteCookies() - delete the single cookie previously created
via SetCookie():
<
a
href
="
javascript:external.DeleteCookies()
"
>
external.DeleteCookies()
</
a
>
<
br
>
<
br
>
<
h3
>
DragHandler test
</
h3
>
Try dragging a file, or a text/html fragment to the browser window
and look for the messages in the console. In the wxpython.py script see
ClientHandler.OnDragStart() and OnDragEnter().
<
h3
>
DownloadHandler test
</
h3
>
Try downloading this file (838 KiB):
<
br
>
<
a
href
="
http://cefpython.googlecode.com/files/ubuntu-wallpapers2.zip
"
>
http://cefpython.googlecode.com/files/ubuntu-wallpapers2.zip
</
a
>
<
br
>
See messages in the console.
The file will be saved in the ./downloads/ directory.
</
body
>
</
html
>
You can’t perform that action at this time.