473,511 Members | 15,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

python applets?

Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.

Andreas R.
Jul 18 '05 #1
8 3025
Andreas wrote:
Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.


A Google search for "python applets" turned up about 190,000 results. A Google
search for "python applets for web browsers" turned up about 69,000 results.
Finally, a Google search for "python applets for web browsers? (eg. such as
java applets?)" turned up about 8,700 results.

HTH,
Dave
Jul 18 '05 #2
Andreas Røsdal wrote:
Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.


No, there was a web browser project called Grail that allowed python
applets, but it is was abandoned.
I think the main issue is security. Right now there is no official way
to restrict what a python program can and cannot do, such as delete a
file on the hard drive.

One thing you can do in Python that you cannot in Java however is embed
a user's web browser (such as Internet Explorer or Mozilla) in your
Python program. In some cases that is more desirable.
Jul 18 '05 #3
You might want to take a look at:

http://grail.sourceforge.net/

http://www.modpython.org/

Larry Bates,
Syscon, Inc.

"Andreas Røsdal" <an******@stud.ntnu.no> wrote in message
news:Pi*******************************@jaguar.stud .ntnu.no...
Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.

Andreas R.

Jul 18 '05 #4
Andreas Røsdal wrote:
Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.

Andreas R.


There is an example here:

http://www.jython.org/docs/jythonc.html

Good luck,
Ype
--
email at xs4all.nl
Jul 18 '05 #5
In article <Jd********************@comcast.com>,
Doug Holton <in****@spam.here> wrote:
Andreas Røsdal wrote:
Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.


No, there was a web browser project called Grail that allowed python
applets, but it is was abandoned.
I think the main issue is security. Right now there is no official way
to restrict what a python program can and cannot do, such as delete a
file on the hard drive.

One thing you can do in Python that you cannot in Java however is embed
a user's web browser (such as Internet Explorer or Mozilla) in your
Python program. In some cases that is more desirable.


How do you do that?

I've been using the webbrowser module to open help files for my python
application, but it has several problems. If the user already has their
browser open in another "desktop" (unix users seem fond of switching
between lots of desktops), then the help opens there instead of the
"desktop" that has the current app. Also, I really need to call
webbrowser in a thread, because it takes forever if the web browser
isn't already open. (Also, it's not safe to ask for file://...#anchor
urls; some OSs handle it, others do not. I ended up writing code that
retries without the anchor.)

-- Russell
Jul 18 '05 #6
Am Wed, 02 Jun 2004 16:49:49 -0700 schrieb Russell E. Owen:
One thing you can do in Python that you cannot in Java however is embed
a user's web browser (such as Internet Explorer or Mozilla) in your
Python program. In some cases that is more desirable.


How do you do that?

I've been using the webbrowser module to open help files for my python
application, but it has several problems. If the user already has their
browser open in another "desktop" (unix users seem fond of switching
between lots of desktops), then the help opens there instead of the
"desktop" that has the current app. Also, I really need to call
webbrowser in a thread, because it takes forever if the web browser
isn't already open. (Also, it's not safe to ask for file://...#anchor
urls; some OSs handle it, others do not. I ended up writing code that
retries without the anchor.)


There is a module called webbrowser in the
standard library. It opens the default browser.
But it does not embed it into an other GUI.

Regards,
Thomas
Jul 18 '05 #7
Am Wed, 02 Jun 2004 21:43:40 +0200 schrieb Andreas Røsdal:
Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.


Yes, this would be useful if it would exist (see other replies)
and if all browers would have this plugin.

If you are doing an intranet solution, you can create
your own GUI talking e.g. xml-rpc with the server.

Regards,
Thomas

Jul 18 '05 #8
Russell E. Owen wrote:
In article <Jd********************@comcast.com>,
Doug Holton <in****@spam.here> wrote:

Andreas Røsdal wrote:
Hi,

Is there such a thing as python applets for web browsers? (eg. such as
java applets?) I think that could be useful.


No, there was a web browser project called Grail that allowed python
applets, but it is was abandoned.
I think the main issue is security. Right now there is no official way
to restrict what a python program can and cannot do, such as delete a
file on the hard drive.

One thing you can do in Python that you cannot in Java however is embed
a user's web browser (such as Internet Explorer or Mozilla) in your
Python program. In some cases that is more desirable.

How do you do that?


You can use your platform's native component architecture (ActiveX,
Kparts, or Bonobo) from Python to embed (or create) controls like a web
browser, PDF viewer, or a multimedia player.

In Windows, you can embed Internet Explorer in wxPython using ActiveX,
see the wxPython demo. In Linux (and hopefully other platforms in the
future), you can embed Mozilla in wxPython, see wxMozilla:
http://wxmozilla.sourceforge.net/
Also in Linux, I believe you can embed the Konqueror browser or any
other Kparts compatible things using PyQT and PyKDE, but I'm not 100%
sure about that.
Lastly, I'm not sure if you can do similar things using PyGTK and
Bonobo: http://www.pycage.de/howto_bonobo.html
Jul 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2545
by: Jim Westwood | last post by:
Is it possible to write java applets in the python language. is that what jython does? I would realy like to write an applet but i dont know any java. I do have some python experience. Can you...
1
2122
by: Vincent Montressor | last post by:
I'm playing around with writing my own panel applets, and I'm trying to figure out how to get my panel applets to be restored when I log in. As an experiment, I'm using the simple clock applet...
7
1980
by: Kyler Laird | last post by:
I've been using Pyrex to get me through the Computer Vision class I'm taking this semester http://shay.ecn.purdue.edu/~ece661/ by dealing with the requirement that all programming assignments be...
26
7682
by: Wolfgang Keller | last post by:
Hello, is it that my know-how to use Google is insufficient or... ....does really noone use Python for industrial control applications? At least I didn't manage to find any publicly...
3
329
by: Anton Vredegoor | last post by:
This is about how to start a Python interpreter on a very locked down library computer. Some time ago I started a thread about it.(Google won't let me reply to older topics so I'm starting a new...
8
2246
by: Luis P. Mendes | last post by:
Hi, I don't know anything about PHP and I'm initiating right now with PostgreSQL. Could someone tell me the pros and cons of assessing the PostgreSQL databases with Python vs. PHP? I will...
5
1395
by: Varun Hiremath | last post by:
Hi, I was wondering if there is any way to make KDE PanelApplets using Python. I have made a small window using Qt, kdeui nad kdecore libs. Now I want to add it to the KDE kicker. Can I get any help...
5
3541
by: Ben Kovitz | last post by:
Hi, I just tried to run Tkinter on OS X 10.3.9 under Python 2.4.3, and I'm getting a bus error as soon as I call Tk(). Googling has turned up info other Tkinter bus errors, but not this one that...
7
2325
by: Sébastien Ramage | last post by:
I've an idea and I've made some search but I found nothing really interesting. There is somebody who have (or can help me to) try to developp a python plugin for web browser just like java ?? I...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7371
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5077
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.