Skip to content

Commit 16b39c9

Browse files
committed
Updated Linux setup installer to include wx subpackage.
Updated README.txt for the setup.
1 parent 9920379 commit 16b39c9

4 files changed

Lines changed: 24 additions & 20 deletions

File tree

cefpython/cef1/linux/binaries/wxpython.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ def __init__(self):
9494
browserSettings={"plugins_disabled": True},
9595
navigateUrl="file://"+GetApplicationPath("cefsimple.html"))
9696

97-
# Remains of OS_WIN code:
98-
#self.Bind(wx.EVT_SET_FOCUS, self.OnSetFocus)
99-
#self.Bind(wx.EVT_SIZE, self.OnSize)
100-
10197
self.Bind(wx.EVT_CLOSE, self.OnClose)
10298
if USE_EVT_IDLE:
10399
# Bind EVT_IDLE only for the main application frame.
@@ -114,14 +110,6 @@ def CreateMenu(self):
114110
menubar.Append(aboutmenu, "&About")
115111
self.SetMenuBar(menubar)
116112

117-
def OnSetFocus(self, event):
118-
#cefpython.WindowUtils.OnSetFocus(self.GetWindowHandle(), 0, 0, 0)
119-
pass
120-
121-
def OnSize(self, event):
122-
#cefpython.WindowUtils.OnSize(self.GetWindowHandle(), 0, 0, 0)
123-
pass
124-
125113
def OnClose(self, event):
126114
self.browser.CloseBrowser()
127115
self.Destroy()

cefpython/cef1/linux/installer/README.txt.template

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@
22

33
sudo python setup.py install
44

5-
2. Go to /usr/local/lib/python2.7/dist-packages/cefpython1/examples/
6-
and run some examples:
7-
5+
This will install cefpython1 package to
6+
/usr/local/lib/python2.7/dist-packages/
7+
8+
2. In the same directory that setup.py resides there is
9+
an examples/ directory, run some example scripts from there:
10+
11+
cd examples/
812
python wxpython.py
913
python pygtk_.py
14+
cd wx/
15+
python sample1.py
16+
python sample2.py
17+
python sample3.py
18+
19+
Note:
20+
Examples directory can also be found in package's directory:
21+
/usr/local/lib/python2.7/dist-packages/cefpython1/examples/
22+
But to run examples from there you would have to chmod 0777
23+
the examples/ directory as it needs permission to create log files.

cefpython/cef1/linux/installer/__init__.py.template

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ if 0x02070000 <= sys.hexversion < 0x03000000:
88
else:
99
raise Exception("Unsupported python version: " + sys.version)
1010

11-
cefpython.locales_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "locales")
12-
cefpython.resources_dir = os.path.dirname(os.path.abspath(__file__))
13-
1411
__version__ = "v53"
1512
__author__ = "CEF Python authors"

cefpython/cef1/linux/installer/setup.py.template

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ setup(
88
author='Czarek Tomczak',
99
author_email='czarek.tomczak@gmail.com',
1010
url='http://code.google.com/p/cefpython/',
11-
packages=['cefpython1'],
11+
packages=['cefpython1', 'cefpython1.wx'],
1212
package_data={'cefpython1': [
1313
'examples/*.py',
1414
'examples/*.html',
15+
'examples/wx/*.py',
16+
'examples/wx/*.html',
17+
'examples/wx/*.png',
1518
'locales/*.pak',
19+
'wx/*.txt',
20+
'wx/images/*.png',
1621
'*.txt',
1722
'cefclient',
1823
'*.so',
19-
'*.pak'
24+
'*.pak',
2025
]}
2126
)

0 commit comments

Comments
 (0)