473,394 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Python plug-in Frameworks like Eclipse RCP...

Eclipse provides a very nice application framework which supports
plug-ins. It's easy to dynamically add new functionality, menu items,
property editors, options etc.. using a combination of XML and Java code.

Is there a similar framework for Python? If not any hints on how such a
framework would be implemented?

I'm building a client side tool using Python/wxPython for our
translators and would like to have a pluggable architecture similar to
Eclipse RCP
thanks!
Jul 18 '05 #1
2 3035
Hum, maybe my question was too specific. What I would really like to
know is what is the best way to implement a Python application with a
pluggable architecture. In particular, I would like to use wxPython and
have plug ins automatically register themselves with the GUI by adding
themselves to the mean or adding a tab. Again this is much like Eclipse
RCP - but forget that part :-)

J

Jim Hargrave wrote:
Eclipse provides a very nice application framework which supports
plug-ins. It's easy to dynamically add new functionality, menu items,
property editors, options etc.. using a combination of XML and Java code.

Is there a similar framework for Python? If not any hints on how such a
framework would be implemented?

I'm building a client side tool using Python/wxPython for our
translators and would like to have a pluggable architecture similar to
Eclipse RCP
thanks!

Jul 18 '05 #2
Jim Hargrave wrote:
Hum, maybe my question was too specific. What I would really like to
know is what is the best way to implement a Python application with a
pluggable architecture. In particular, I would like to use wxPython and
have plug ins automatically register themselves with the GUI by adding
themselves to the mean or adding a tab. Again this is much like Eclipse
RCP - but forget that part :-)

This is close to beeing trivial in python - just utilize __import__ to
dynamically load modules that shall act as plugins. These modules then only
have to follow a sort of protocol - lets say you have a module called

pluginloader.py

that has a register-function. The loaded module could import pluginloader
and register itself, or a class defined in itself. Like this

---------plugin_example.py-------------

import pluginloader
class ExamplePlugin(pluginloader.PluginBase):
def __init__(self,...):
....

pluginloader.register(ExamplePlugin())

------------------------

--
Regards,

Diez B. Roggisch
Jul 18 '05 #3

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

Similar topics

5
by: Gabriele Farina | last post by:
Hi guys, hiow can I create a XUL application that runs with python?? Which libreries I need?? bye
9
by: Carl | last post by:
I have been using Python for quite some time now and I love it. I use it mainly for explorative computing and numerical prototyping, ie testing and trying out different kinds of algorithms and...
5
by: Tom Locke | last post by:
Hi, Anyone know of a good hosting company that offers both server-side Python and a subversion repository? I know of one: www.textdrive.com - they're a bit pricey, but I s'pose you gets what...
4
by: djanvk | last post by:
QUick question: Is it possible to create a palm os program to use on a PDA with python? THanks
2
by: Petri Savolainen | last post by:
Hello, has anyone seen such a beast? I tried googling, PyPI, Parnassus etc. but could not find any pure-python code nor extensions to interface with any of the existing implementations. I am...
1
by: Max M | last post by:
I would like to install several copies of Python 2.4.2 on my machine, but it doesn't seem to be possible. If I allready has a version installed, the installer only gives the options to: -...
7
by: Steve | last post by:
Hi folks New to the group. As a newbie to Python I`d just like to plug Ron Stephens web site which contains many excellent articles, podcasts and much Python stuff to help beginners like me. No...
10
by: AKA gray asphalt | last post by:
I downloaded Blender but there was no link for python. Am I on the right track?
7
by: Chris | last post by:
I have an database containing lots of numerical data. I want to write a browser based interface that will allow selection of various key parameters and yield tables, plots and/or printouts of the...
68
by: Santiago Romero | last post by:
( Surely if this question has been asked for a zillion of times... ) ( and sorry for my english! ) I'm impressed with python. I'm very happy with the language and I find Python+Pygame a very...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.