Hi Philippe,
> Hi,
>
> Please find at http://www.snakecard.com/PY my first PluginMixin
> proposal.
>
> It shows a minimum implementation in PyAlaMode:
>
> -) Py.Frame holds (for simplicity) the stub class PluginFrame wich
> would
> eventually disappear as the code would be inserted in wx.Frame =>
> the point
> is to have the prototype self-contained so it can run without touching
> wx.Frame until all agree
> -) Py.Frame holds the PluginMixing class which would eventually be
> moved to
> wx.PluginMixin
> -)Py.Frame derives from the stub class PluginFrame which in turn
> derives from
> wx.Frame and PluginMixin
> -) All plugins are loaded at the initialization of Py.Frame
> -) Once the frame is loaded and all other application's widgets are
> installed 'OnInit in the install procedure of PyAlaMode" calls
> PluginMixing.InitPlugins() which loops through the loaded plugins
> and calls
> their "Init" method so they can add their own widgets
The main issue I have with this implementation is that it is so tied
into the Py framework that it's hard to follow the code flow or see
exactly how it works. i.e. it seems various bits are scattered about
the Py framework, rather than having a standalone implementation. I
think we need something closer to a minimal sample if we're to review
this for general inclusion into wxPython.
Also, BTW, why do you duplicate the entire Py framework? Wouldn't it
be difficult for you to keep up with any changes to the wxPython
version (i.e. bug-fixes, etc.) this way?
Regards,
Kevin
> This first proposal simply installs new menus as the architecture
> would be the
> same for other widgets ... I followed Kevin's suggestion to have a
> "Plugin"
> menu automatically installed and all plugin menus installed under
> it ... I am
> still debating as to whether this is flexible enough, but at least
> it keeps
> multiple plugins from making the menu bar "too busy" ...
> cohabitation between
> plugins is an issue I think.
>
> Should all plugins be in the same hierarchy (as it is now) or
> should there be
> a ways to have them spread around the file system / maybe the net ?
>
>
> I am looking forward to receiving your feedback.
>
> Regards,
>
> Philippe
>
>
>
>
>
>
>
>
>
>
>
>
> --
> _________________________
> Philippe C. Martin
> www.snakecard.com
> _________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-
> help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Hi Kevin,
I did not explain myself correctly.
The reason the classes are in the Py framework is only so you can download and
the package right away without touching wx.
: PuginMixin will eventually be somewhere else (root of wx ?)
Also, BTW, why do you duplicate the entire Py framework? Wouldn't it
be difficult for you to keep up with any changes to the wxPython
version (i.e. bug-fixes, etc.) this way?
Not sure I understand: maybe the same confusion as above ?
So to reiterate:
Class MixinPlugin should be eventually in its own module/file (currently in
py.Frame)
Class PluginFrame is a stub (located again for simplicity in Py.Frame for
testing purpose) that should disappear as its code will be integrated in
wx.Frame itself.
So really, the Py Framework is not linked in anyway to this architecture.
Not sure I fully understand your concern ... am I making sense ?
Regards,
Philippe
···
On Tuesday 16 January 2007 20:23, Kevin Ollivier wrote:
On Jan 10, 2007, at 11:42 PM, Philippe C. Martin wrote:
--
_________________________
Philippe C. Martin
www.snakecard.com
_________________________