On Nov 2, 2004, at 5:43 AM, Jacob Westfall wrote:
> Hi,
> I'm new to pythoncard and wxpython in general. For my first app,
> I've got a parent window and a child window working well according to
> the tutorials. However, the child window, which reports status
> messages from the parent window, keeps losing focus and dropping
> behind the main window. I've checked in the wxpython docs and there
> is the option to STAY_ON_TOP. However, my question is how to get this
> behaviour added to my child window in pythoncard? Thanks,
There isn't a solution to this in the current release or what is
checked into cvs. PythonCard doesn't have an optional attributes field
for specifying alternative style flags. Your options are to subclass
model.Background for your child window and change __init__ to use the
style flags you want. Since you'll basically be copying and pasting the
Background __init__ method, that isn't too bad.
Another solution might be to put your status messages in a statusBar on
your main window, just use a plain wxPython window for your child
window assuming the layout isn't very complex. If the status window is
always on top and always visible, maybe that should be your main window
for the app, and what is currently your main window a child window?
ka
|