Repository navigation
Expand file tree
/
Copy pathwxpython.html
More file actions
77 lines (59 loc) · 2.43 KB
/
Copy pathwxpython.html
File metadata and controls
77 lines (59 loc) · 2.43 KB
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
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>wxPython CEF 3 example (utf-8: ąś)</title>
<style>
body { font: 13px Segoe UI, Arial; line-height: 1.4em; }
pre { background: #ddd; font: 12px 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>HTML5 video and accelerated content</h3>
<a href="http://www.youtube.com/watch?v=siOHh0uzcuY&html5=True">
HTML 5 video</a><br>
<a href="http://mudcu.be/labs/JS1k/BreathingGalaxies.html">
Accelerated canvas</a><br>
<a href="http://www.webkit.org/blog-files/3d-transforms/poster-circle.html">
Accelerated layers</a><br>
<h3>Javascript bindings</h3>
<a href="javascript:PyPrint('printing in python console from js')">
PyPrint('printing in python console from js')</a><br>
<a href="javascript:window.alert(window.pyProperty)">
window.alert(window.pyProperty)</a><br>
<a href="javascript:window.alert(JSON.stringify(window.pyConfig))">
window.alert(JSON.stringify(window.pyConfig))</a><br>
<a href="javascript:external.Print('printing again from js')">
external.Print('printing again from js')</a><br>
<a href="javascript:external.TestAllTypes(undefined, null, true, 1,
((1<<31)>>>0), 2.14, 'Date not yet supported', 'string',
{key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]},
[1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])">
external.TestAllTypes</a>
<small>(undefined, null, true, 1,
((1<<31)>>>0), 2.14, 'Date not yet supported', 'string',
{key1: 1, key2: 2}, {key1: {'key1.1': 'nested object'}, 'key1.2': [1]},
[1, 2], [1, [2.1, 'nested array']], [{key1: [{}]}])</small>
<br>
<script>
function JavascriptAlert(message) { window.alert(message); }
</script>
<pre>
<script>
function JavascriptAlert(message) { window.alert(message); }
</script>
</pre>
<a href="javascript:external.ExecuteFunction('JavascriptAlert',
'python called from js and then js called from python')">
external.ExecuteFunction('JavascriptAlert',
'python called from js and then js called from python')</a>
</body>
</html>