Comments (19)
Use of compile time definitions and conditional statements will be helpful when
creating linux port:
http://docs.cython.org/src/userguide/language_basics.html#conditional-statements
Original comment by [email protected]
on 5 Jul 2012 at 3:30
from cefpython.
Are there any plans to have this run on OSX?
Original comment by [email protected]
on 15 Jul 2012 at 12:54
from cefpython.
@rattray.alex, go create an appropriate issue. MacOSX version should be easier
to create than linux as there are ready binaries on chromiumembedded project.
The priority for me is to have a 1.00 version for windows with complete api,
which should take about 2 months, after that I can start working on
linux/macosx ports. If someone wants to help with linux/macosx we could have it
earlier.
Original comment by [email protected]
on 15 Jul 2012 at 4:46
from cefpython.
The linux distribution for which I plan to release binaries is Ubuntu, as it
will be probably too much hassle to do it for all the distributions, if you
want binaries for other distros (Debian, Fedora or OpenSuse - look for
supported one here:
http://code.google.com/p/chromiumembedded/wiki/BranchesAndBuilding) you will
have to compile it by yourself.
I will provide 2 example applications within the binary, one using PyGTK, the
other wxPython - that should be enough.
I will have to remove OS dependencies from CEF Python, I will do that by
introducing interfaces named "WindowsAPI" and "LinuxAPI" that will have to
implement some of the functions to manage windows, I looked briefly at the code
and I see that we need functions:
IsWindow
EnforceWindowTitle
EnforceWindowIcon
CefStringToPyString (uses WideCharToMultiByte to convert wide string to utf-8)
When initializing CEF you have provide an object that implements this
interface, for linux there will be 2 versions of this interface, one for PyGTK,
the other for wxPython.
I'm still not sure which Ubuntu version I have to use, if I compile on version
12.10 will the generated .so files be compatible with earlier versions of
Ubuntu (10.04)?
Original comment by [email protected]
on 4 Sep 2012 at 12:44
from cefpython.
Why not use tkinter for window management? It is included with python, and
would avoid introducing a dependency on gtk or wx.
Original comment by [email protected]
on 4 Sep 2012 at 1:44
from cefpython.
A quote from here:
http://pygtk.org/downloads.html
'''PyGTK is included in most Linux distributions (including Debian, Fedora,
Ubuntu, Opensuse, Gentoo, Mandrake, Redhat, SUSE...); the source code can also
be downloaded and compiled from the links below.'''
Does tkinter allow embedding win32 native controls? If so, we can create an
example using tkinter too. From what I know tkinter is somewhat limited, last
time I tried it to set application's icon that had many sizes, but couldn't
make it work the way I wanted, small icon in tkinter was ugly compared to win32
native app. I will try to create a tkinter example, but let's not make it the
only option, pyGTK and wxpython should also co-exist.
Original comment by [email protected]
on 4 Sep 2012 at 2:49
from cefpython.
'''Does tkinter allow embedding win32 native controls?'''
As it is linux we talk here, I meant whether we can get window handle and embed
cef control inside it.
Original comment by [email protected]
on 4 Sep 2012 at 2:53
from cefpython.
I've googled and tkinter seems a good choice, it will definitely work, and as
jlv said there is no dependency.
Original comment by [email protected]
on 4 Sep 2012 at 2:59
from cefpython.
I envision using the GUI framework to simply create the window, very few of the
toolkit features would actually be used in my use case, everything else would
be rendered by CEF.
Unfortunately, I am no expert. I use tkinter because it is simple. From what
I understand, the newer versions of tk look much better than it used to.
I did some searching, to try to answer your question. I may be completely
misunderstanding, but I found this thread that talks about getting the window
handle in wx and the equivalent in tkinter-
http://code.activestate.com/lists/python-list/343819/
I hope that helps in some way.
Original comment by [email protected]
on 4 Sep 2012 at 3:42
from cefpython.
I've found this link too earlier when googled, but thanks anyway. Like I said
it will work, we will have tkinter.
Original comment by [email protected]
on 4 Sep 2012 at 3:45
from cefpython.
There is some more work involved to make it work on linux, there are separate
VS projects that implement some of the functionality in C++, they are required
when compiling with cython:
* httpauth - this will require implementing dialog prompt for login/password using some linux native window api, in windows we used DialogBoxIndirect
* v8functionhandler
* clienthandler
Original comment by [email protected]
on 4 Sep 2012 at 4:04
from cefpython.
It is not possible to embed browser control in a tkinter-window, it is required
to install a third party package called "tksteal" to be able to do that. Linux
and mac example apps will require an external gui framework, one of: wxPython,
PyGTK, PyQt.
Original comment by [email protected]
on 17 Nov 2012 at 2:17
from cefpython.
[deleted comment]
from cefpython.
Original comment by [email protected]
on 3 Jan 2013 at 9:49
- Changed title: Linux support + Ubuntu 32bit binaries
- Changed state: Accepted
from cefpython.
Binaries for Linux have been released, specifically for Ubuntu 12.04 LTS
32-bit. Only Python 2.7 is supported as of now. Examples for wxPython
and PyGTK are included. Go to downloads and have fun.
Next on the target is a python package installer for Linux.
Original comment by [email protected]
on 6 May 2013 at 9:19
- Changed state: Fixed
from cefpython.
The Linux release was sponsored by Cyan Inc. See the announcement on the forum:
https://groups.google.com/d/topic/cefpython/PlEHlLGzoxA/discussion
Original comment by [email protected]
on 6 May 2013 at 9:32
from cefpython.
64-bit binaries for linux have been released.
Package Setup binaries are available along with portable zips.
You can build custom binaries for your Linux version by following the
instructions on the BuildOnLinux wiki page.
Original comment by [email protected]
on 12 May 2013 at 2:57
from cefpython.
CEF 3 Linux port is complete, see revision 690b771871ef.
Original comment by [email protected]
on 24 Jun 2013 at 9:24
from cefpython.
Project will move to Github. Find this issue at the new address (soon):
https://github.com/cztomczak/cefpython/issues/1
Original comment by [email protected]
on 24 Aug 2015 at 6:22
from cefpython.
Related Issues (20)
- The default en-US locale pak file fails to load on Mac HOT 7
- Examples crash on Mac when app doesn't have permission to write to the debug.log file HOT 2
- Issues with size_t => int conversions when using cef_values.h API on Win x64 platform HOT 3
- Python Wheels - DESCRIPTION.rst UNKNOWN HOT 1
- Embed __version__ also in the cython generated module (cefpython_py27.pyd) HOT 2
- Create unified key mappings for all platforms HOT 9
- Add Browser.IsDevTools() HOT 2
- Expose CreateBrowser() with a callback argument that will be executed after browser was created HOT 2
- The popup window and parent window can't script each other in the wxpython.py example HOT 4
- Create "chrome31" branch before updating to a newer CEF branch HOT 2
- wxpython-response.py example: final url is wrong when doing redirects HOT 8
- Close the browser BEFORE the page is full loaded CEF Crashe HOT 1
- Warnings on OS X: Internals of CFAllocator not known HOT 2
- [meta] Migrate the repository somewhere HOT 2
- Gtk: gtk_disable_setlocale() must be called before gtk_init() HOT 3
- Restructure directories (binaries, installer, libraries) to allow for git branching HOT 2
- Automating navigation HOT 1
- Google Code is dying HOT 1
- Update to CEF branch 2171 (Chrome 39) HOT 2
- Ability to pass modifiers to SendMouseMoveEvent and similar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cefpython.