Re: [PyCrust] Thoughts...
Brought to you by:
pobrien
|
From: Robin D. <ro...@al...> - 2001-08-15 21:57:25
|
> I'm not sure if this gets you exactly what you want, but here is an
example.
Not quite, I had already done something like that. What I was saying is it
would be nice if there was a class, say ShellWindow, that had wxWindow as an
ancestor and had the same basic __init__ interface (parent, id, pos, size,
style) plus any extra parameters for the Shell such as a locals dict, intro
text, etc. That way you wouldn't have to know that the "window" is really
"shell.editor" and not just "shell", and it could more easily be used as a
control/widget/component like any other in app builders like Boa or
wxDesigner.
What I've got:
> from PyCrust.shell import Shell
>
> #----------------------------------------------------------------------
>
> def runTest(frame, nb, log):
> shell = Shell(nb)
> return shell.editor
>
What I would like:
from PyCrust.shell import ShellWindow # or whatever
def runTest(frame, nb, log):
shell = ShellWindow(nb)
return shell
Creating a ShellWindow class that derives from both Shell and Editor almost
does it, but there are attribute and method name clashes between the two so
it never quite worked right when I tried it.
--
Robin Dunn
Software Craftsman
ro...@Al... Java give you jitters?
http://wxPython.org Relax with wxPython!
|