I've released a Windows and Mac preview release for wxPython, along with a sample app for people to play with for those of you not in wxPython land who wants to see how wxWebKit performs. Ubuntu binaries are coming as well, I'm just new to apt/Debian packaging and am still figuring out how it works. Here's where you can download the preview release:
This is a first release, so please please report any issues you find, especially crashes or if it won't run on your machine for some reason. Any and all feedback is appreciated! The HTML editor code is open source and the source will be released soon, I'm currently untying it from my app codebase so that I can distribute it as a separate app / module. Note that it requires the code in the editor branch on gitorious for those who want to compile wxWebKit with all the editor support themselves.
I dug up my old code from 2 years ago when you did the first alpha
release for windows to see if it still worked with this newer alpha
and it amazingly did except the code I had to auto scroll to the
bottom of the page every time I appended new code. The WebView class
seems to missing the GetScrollPageSize and Scroll methods. The code I
had to scroll to the bottom looked like
and the call to GetScrollRange works but the other two do not.
···
On Thu, Nov 5, 2009 at 1:51 PM, Kevin Ollivier <kevin-lists@theolliviers.com> wrote:
This is a first release, so please please report any issues you find,
especially crashes or if it won't run on your machine for some
reason. Any and all feedback is appreciated! The HTML editor code
is open source and the source will be released soon, I'm currently
untying it from my app codebase so that I can distribute it as a
separate app / module. Note that it requires the code in the editor
branch on gitorious for those who want to compile wxWebKit with all
the editor support themselves.
This is very exciting, but how can I use the Mac packages? The included sample app that gets installed in /Applications doesn’t run because python can’t import wx.webview - although it can import wx.webkit without problems.
I’ve released a Windows and Mac preview release for wxPython, along
with a sample app for people to play with for those of you not in
wxPython land who wants to see how wxWebKit performs. Ubuntu binaries
are coming as well, I’m just new to apt/Debian packaging and am still
figuring out how it works. Here’s where you can download the preview
release:
This is very exciting, but how can I use the Mac packages? The included sample app that gets installed in /Applications doesn’t run because python can’t import wx.webview - although it can import wx.webkit without problems.
Do you get an error message? Also, could you let me know the Python, OS and wx versions you’re running?
Thanks,
Kevin
···
On Nov 5, 2009, at 1:34 PM, Nathaniel Echols wrote:
This is very exciting, but how can I use the Mac packages? The included sample app that gets installed in /Applications doesn’t run because python can’t import wx.webview - although it can import wx.webkit without problems.
Do you get an error message? Also, could you let me know the Python, OS and wx versions you’re running?
This is a first release, so please please report any issues you find,
especially crashes or if it won't run on your machine for some
reason. Any and all feedback is appreciated! The HTML editor code
is open source and the source will be released soon, I'm currently
untying it from my app codebase so that I can distribute it as a
separate app / module. Note that it requires the code in the editor
branch on gitorious for those who want to compile wxWebKit with all
the editor support themselves.
I dug up my old code from 2 years ago when you did the first alpha
release for windows to see if it still worked with this newer alpha
and it amazingly did except the code I had to auto scroll to the
bottom of the page every time I appended new code. The WebView class
seems to missing the GetScrollPageSize and Scroll methods. The code I
had to scroll to the bottom looked like
and the call to GetScrollRange works but the other two do not.
Glad to hear it still works for you!
We don't use native scrollbars anymore (though we do use native LNF by
default), so those wx.Window methods no longer do anything. You should
be able to achieve a similar result by doing self.RunScript
('window.scrollTo(0, 1000000)') or any similar ridiculously high value
of y. You can probably use something like window.innerHeight if
you want to use the actual height to calculate the scrollTo value.
Thanks,
Kevin
···
On Nov 5, 2009, at 1:30 PM, Dj Gilcrease wrote:
On Thu, Nov 5, 2009 at 1:51 PM, Kevin Ollivier > <kevin-lists@theolliviers.com> wrote:
This is very exciting, but how can I use the Mac packages? The included sample app that gets installed in /Applications doesn’t run because python can’t import wx.webview - although it can import wx.webkit without problems.
Do you get an error message? Also, could you let me know the Python, OS and wx versions you’re running?
Running 10.6, and using 32-bit python 2.6 which has wxPython 2.8.8.1:
File “/Applications/wxWebKit/Demos/simple.py”, line 28, in
import wx.webview
ImportError: No module named webview
Ah, I suspect I’ll need to do a similar path redirect trick as wxPython itself does so that the python.org Python and Apple’s Python can both find wx.webview in the same place. In the meantime, installing wxPython 2.8.10.1 should resolve the issue.
Thanks,
Kevin
···
On Nov 5, 2009, at 1:58 PM, Nathaniel Echols wrote:
Ah, I suspect I’ll need to do a similar path redirect trick as wxPython itself does so that the python.org Python and Apple’s Python can both find wx.webview in the same place. In the meantime, installing wxPython 2.8.10.1 should resolve the issue.
Ah, I suspect I’ll need to do a similar path redirect trick as wxPython itself does so that the python.org Python and Apple’s Python can both find wx.webview in the same place. In the meantime, installing wxPython 2.8.10.1 should resolve the issue.
Just tried that, but still not working. I also installed the latest binary from python.org, but it can’t even find the rest of wx.
Hmm, I think I need to look into this some more. FWIW, I installed python.org’s latest Python 2.6, wxPython 2.8.10.1 and then wxWebKit in that order when I got it working here, but my machine isn’t really a clean box.
Thanks,
Kevin
···
On Nov 5, 2009, at 2:21 PM, Nathaniel Echols wrote:
I've released a Windows and Mac preview release for wxPython, along
with a sample app for people to play with for those of you not in
wxPython land who wants to see how wxWebKit performs. Ubuntu binaries
are coming as well, I'm just new to apt/Debian packaging and am still
figuring out how it works. Here's where you can download the preview
release:
This is a first release, so please please report any issues you find,
especially crashes or if it won't run on your machine for some
reason. Any and all feedback is appreciated! The HTML editor code
is open source and the source will be released soon, I'm currently
untying it from my app codebase so that I can distribute it as a
separate app / module. Note that it requires the code in the editor
branch on gitorious for those who want to compile wxWebKit with all
the editor support themselves.
Nice to see wxWebKit is getting attention of Windows users! BTW, I
probably don't know where to look for, but on the webpage there is a
note saying "Although there is a simple browser example included with
the wxPython bindings"... uhm, where do I find this simple browser
example once I have installed all the necessary requirements?
Neither is mine, but re-installing them in that order fixed the problem. Looks excellent - this is going to make inline documentation for my GUIs much, much better. Thanks for all the hard work.
Hmm, I think I need to look into this some more. FWIW, I installed python.org’s latest Python 2.6, wxPython 2.8.10.1 and then wxWebKit in that order when I got it working here, but my machine isn’t really a clean box.
mmm is the only method going to be via run script since I planned on
disabling javascript for the app I am working on, which is a chat
interface that currently uses wx.HTML but I want the CSS and proper
rendering on webkit but no JS as that would introduce a giant security
hole in the app.
I'll need to look into the API a little more to see if I can block
people from adding scripts via the chat interface without me needing
to parse them out and still call to it internaly
···
On Thu, Nov 5, 2009 at 3:08 PM, Kevin Ollivier <kevin-lists@theolliviers.com> wrote:
Glad to hear it still works for you!
We don't use native scrollbars anymore (though we do use native LNF by
default), so those wx.Window methods no longer do anything. You should
be able to achieve a similar result by doing self.RunScript
('window.scrollTo(0, 1000000)') or any similar ridiculously high value
of y. You can probably use something like window.innerHeight if
you want to use the actual height to calculate the scrollTo value.
I hate to be one of the people asking “is it ready yet?”, but: how soon do you think it will be safe/advisable to use wxWebKit in distributed software? If it helps, what I need it for (at least to start) is relatively vanilla HTML with a minimum of JavaScript and no plugins - just program documentation with images. Based on my quick check with the sample app, it’s quite capable of handling that, but if there are known problems that could potentially crash it, I’ll wait. I’m happy waiting as long as necessary and continuing to use the system web browsers, but if I could get it into our software in time for a meeting in early December, that would make life much easier for our users. . .
I've released a Windows and Mac preview release for wxPython, along
with a sample app for people to play with for those of you not in
wxPython land who wants to see how wxWebKit performs. Ubuntu binaries
are coming as well, I'm just new to apt/Debian packaging and am still
figuring out how it works. Here's where you can download the preview
release:
This is a first release, so please please report any issues you find,
especially crashes or if it won't run on your machine for some
reason. Any and all feedback is appreciated! The HTML editor code
is open source and the source will be released soon, I'm currently
untying it from my app codebase so that I can distribute it as a
separate app / module. Note that it requires the code in the editor
branch on gitorious for those who want to compile wxWebKit with all
the editor support themselves.
Nice to see wxWebKit is getting attention of Windows users! BTW, I
probably don't know where to look for, but on the webpage there is a
note saying "Although there is a simple browser example included with
the wxPython bindings"... uhm, where do I find this simple browser
example once I have installed all the necessary requirements?
Agh, looks like somehow the change adding the sample app to the
package didn't make it into the codebase I did the release from. :
( It'll be in the next release, but in the meantime, you can get it
from here:
We don't use native scrollbars anymore (though we do use native LNF
by
default), so those wx.Window methods no longer do anything. You
should
be able to achieve a similar result by doing self.RunScript
('window.scrollTo(0, 1000000)') or any similar ridiculously high
value
of y. You can probably use something like window.innerHeight if
you want to use the actual height to calculate the scrollTo value.
mmm is the only method going to be via run script since I planned on
disabling javascript for the app I am working on, which is a chat
interface that currently uses wx.HTML but I want the CSS and proper
rendering on webkit but no JS as that would introduce a giant security
hole in the app.
I'll need to look into the API a little more to see if I can block
people from adding scripts via the chat interface without me needing
to parse them out and still call to it internaly
I could expose a C++/Python method for scrolling the page. I'd need to
expose a way for turning of JS then too.
Thanks,
Kevin
···
On Nov 5, 2009, at 3:49 PM, Dj Gilcrease wrote:
On Thu, Nov 5, 2009 at 3:08 PM, Kevin Ollivier > <kevin-lists@theolliviers.com> wrote:
This is a first release, so please please report any issues you find,
especially crashes or if it won’t run on your machine for some
reason. Any and all feedback is appreciated! The HTML editor code
is open source and the source will be released soon, I’m currently
untying it from my app codebase so that I can distribute it as a
separate app / module. Note that it requires the code in the editor
branch on gitorious for those who want to compile wxWebKit with all
the editor support themselves.
I hate to be one of the people asking “is it ready yet?”, but: how soon do you think it will be safe/advisable to use wxWebKit in distributed software? If it helps, what I need it for (at least to start) is relatively vanilla HTML with a minimum of JavaScript and no plugins - just program documentation with images. Based on my quick check with the sample app, it’s quite capable of handling that, but if there are known problems that could potentially crash it, I’ll wait. I’m happy waiting as long as necessary and continuing to use the system web browsers, but if I could get it into our software in time for a meeting in early December, that would make life much easier for our users. . .
There aren’t any known issues, but I would offer the caveat to start testing and playing with it now. I’ve been using it for quite some time now, but I test on most of the same content or content I know exercises certain features, so any testing it gets is helpful.
Thanks,
Kevin
···
On Nov 5, 2009, at 5:01 PM, Nathaniel Echols wrote:
mmm is the only method going to be via run script since I planned on
disabling javascript for the app I am working on, which is a chat
interface that currently uses wx.HTML but I want the CSS and proper
rendering on webkit but no JS as that would introduce a giant security
hole in the app.
JS a giant security hole ?
I always was told JS was perfectly safe ?
cheers,
Stef
Javascripts history related to security sucks. Here are a couple
articles:
It's gotten better, but malicious coders are always coming up with new
hacks. I've been reading about a lot of Adobe related ones lately,
though.
···
On Nov 6, 3:59 am, Stef Mientki <stef.mien...@gmail.com> wrote:
> mmm is the only method going to be via run script since I planned on
> disabling javascript for the app I am working on, which is a chat
> interface that currently uses wx.HTML but I want the CSS and proper
> rendering on webkit but no JS as that would introduce a giant security
> hole in the app.
JS a giant security hole ?
I always was told JS was perfectly safe ?
cheers,
Stef
On Nov 5, 2:51 pm, Kevin Ollivier <kevin-li...@theolliviers.com> wrote:
Hi all,
I've released a Windows and Mac preview release for wxPython, along
with a sample app for people to play with for those of you not in
wxPython land who wants to see how wxWebKit performs. Ubuntu binaries
are coming as well, I'm just new to apt/Debian packaging and am still
figuring out how it works. Here's where you can download the preview
release:
This is a first release, so please please report any issues you find,
especially crashes or if it won't run on your machine for some
reason. Any and all feedback is appreciated! The HTML editor code
is open source and the source will be released soon, I'm currently
untying it from my app codebase so that I can distribute it as a
separate app / module. Note that it requires the code in the editor
branch on gitorious for those who want to compile wxWebKit with all
the editor support themselves.
Thanks,
Kevin
Stupid question, but is wxWebkit only for Python 2.6+ or will it be
back-ported to 2.5 as well?