473,769 Members | 6,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3058
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(p luginloader.Plu ginBase):
def __init__(self,. ..):
....

pluginloader.re gister(ExampleP lugin())

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

--
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
4234
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
2678
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 computational schemes. The use of Python as my first-choice language has made me extremely productive. Now, I have always believed that Python is a poor performer in terms of numerical speed. My experience, however, is that the efficient use of...
5
2002
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 you pays for - they look good. Just FYI - right now I'm with sapphiresoft.co.uk. They're cheap and in my brief experience have been pretty good at responding to support
4
2075
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
2952
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 thinking about taking the Ruby code I found at http://www.zweknu.org/technical/index.rhtml?s=p%7c15
1
2096
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: - change python 2.4.2 - repair python 2.4.2 - remove python 2.4.2
7
1555
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 doubt many already use it and listen to his weekly podcasts. http://www.awaretek.com/python/index.html Cheers and many thanks Ron Steve
10
3142
by: AKA gray asphalt | last post by:
I downloaded Blender but there was no link for python. Am I on the right track?
7
1896
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 data according to the selections. Ultimately I want this to run on an intranet so that others can get access via their browsers. The application is for in-house use only and not likely to have more than a few users at any one time. I've managed...
68
2732
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 powerful and productive way of writing 2D games. I'm not, at this moment, worried about execution speed of the small game I'm working on (it runs at full 60 fps even in an old AMD- K6 450 Laptop computer), but I continue asking me the same question:...
0
9590
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7413
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.