Skip to content

Commit 49c6924

Browse files
committed
Changed indentation from tabs to 4 spaces.
1 parent 2e9cb3d commit 49c6924

73 files changed

Lines changed: 5318 additions & 6891 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cefpython/browser.pyx

Lines changed: 288 additions & 288 deletions
Large diffs are not rendered by default.

cefpython/cef1/windows/binaries/cefadvanced.html

Lines changed: 155 additions & 155 deletions
Large diffs are not rendered by default.

cefpython/cef1/windows/binaries/cefadvanced.py

Lines changed: 257 additions & 257 deletions
Large diffs are not rendered by default.

cefpython/cef1/windows/binaries/cefpython_py27.py

Lines changed: 0 additions & 804 deletions
This file was deleted.

cefpython/cef1/windows/binaries/cefpython_py32.py

Lines changed: 0 additions & 805 deletions
This file was deleted.

cefpython/cef1/windows/binaries/cefsimple.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<title>CefSimple</title>
5-
<style>
6-
body { font: 13px Segoe UI, Arial; }
7-
pre { background: #ddd; font: 12px Consolas, Courier New; }
8-
</style>
4+
<title>CefSimple</title>
5+
<style>
6+
body { font: 13px Segoe UI, Arial; }
7+
pre { background: #ddd; font: 12px Consolas, Courier New; }
8+
</style>
99
</head>
1010
<body>
1111

@@ -17,7 +17,7 @@
1717

1818
<h3>User agent</h3>
1919

20-
<script>document.write(navigator.userAgent)</script>
20+
<script>document.write(navigator.userAgent)</script>
2121

2222
<br><br><br><br><br><br><br><br><br><br><br>
2323
<br><br><br><br><br><br><br><br><br><br><br>
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
# Simple CEF Python application,
1+
# Simple CEF Python application,
22
# for more advanced features see "cefadvanced.py"
33

44
import platform
55
if platform.architecture()[0] != "32bit":
6-
raise Exception("Architecture not supported: %s" % platform.architecture()[0])
6+
raise Exception("Architecture not supported: %s" % platform.architecture()[0])
77

88
import sys
99
if sys.hexversion >= 0x02070000 and sys.hexversion < 0x03000000:
10-
import cefpython_py27 as cefpython
10+
import cefpython_py27 as cefpython
1111
elif sys.hexversion >= 0x03000000 and sys.hexversion < 0x04000000:
12-
import cefpython_py32 as cefpython
12+
import cefpython_py32 as cefpython
1313
else:
14-
raise Exception("Unsupported python version: %s" % sys.version)
14+
raise Exception("Unsupported python version: %s" % sys.version)
1515

1616
import cefwindow
1717
import win32con
1818
import win32gui
1919

2020
def CefSimple():
21-
sys.excepthook = cefpython.ExceptHook
22-
cefpython.Initialize()
23-
wndproc = {
24-
win32con.WM_CLOSE: CloseWindow,
25-
win32con.WM_DESTROY: QuitApplication,
26-
win32con.WM_SIZE: cefpython.WindowUtils.OnSize,
27-
win32con.WM_SETFOCUS: cefpython.WindowUtils.OnSetFocus,
28-
win32con.WM_ERASEBKGND: cefpython.WindowUtils.OnEraseBackground
29-
}
30-
windowHandle = cefwindow.CreateWindow(title="CefSimple", className="cefsimple",
31-
width=800, height=600, icon="icon.ico", windowProc=wndproc)
32-
windowInfo = cefpython.WindowInfo()
33-
windowInfo.SetAsChild(windowHandle)
34-
browser = cefpython.CreateBrowserSync(windowInfo, browserSettings={}, navigateURL="cefsimple.html")
35-
cefpython.MessageLoop()
36-
cefpython.Shutdown()
21+
sys.excepthook = cefpython.ExceptHook
22+
cefpython.Initialize()
23+
wndproc = {
24+
win32con.WM_CLOSE: CloseWindow,
25+
win32con.WM_DESTROY: QuitApplication,
26+
win32con.WM_SIZE: cefpython.WindowUtils.OnSize,
27+
win32con.WM_SETFOCUS: cefpython.WindowUtils.OnSetFocus,
28+
win32con.WM_ERASEBKGND: cefpython.WindowUtils.OnEraseBackground
29+
}
30+
windowHandle = cefwindow.CreateWindow(title="CefSimple", className="cefsimple",
31+
width=800, height=600, icon="icon.ico", windowProc=wndproc)
32+
windowInfo = cefpython.WindowInfo()
33+
windowInfo.SetAsChild(windowHandle)
34+
browser = cefpython.CreateBrowserSync(windowInfo, browserSettings={}, navigateURL="cefsimple.html")
35+
cefpython.MessageLoop()
36+
cefpython.Shutdown()
3737

3838
def CloseWindow(windowHandle, message, wparam, lparam):
39-
browser = cefpython.GetBrowserByWindowHandle(windowHandle)
40-
browser.CloseBrowser()
41-
return win32gui.DefWindowProc(windowHandle, message, wparam, lparam)
39+
browser = cefpython.GetBrowserByWindowHandle(windowHandle)
40+
browser.CloseBrowser()
41+
return win32gui.DefWindowProc(windowHandle, message, wparam, lparam)
4242

4343
def QuitApplication(windowHandle, message, wparam, lparam):
44-
win32gui.PostQuitMessage(0)
45-
return 0
44+
win32gui.PostQuitMessage(0)
45+
return 0
4646

4747
if __name__ == "__main__":
48-
CefSimple()
48+
CefSimple()

0 commit comments

Comments
 (0)