ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] locking all windows to same level in the Z order
by David Primmer other posts by this author
May 22 2002 5:36AM messages near this date
Re: [Pythoncard-users] mailing list milestone - over 100 subscribers | [Pythoncard-users] locking all windows to same level in the Z order
I'm surprised to here that this is the default. I have a child window
that is NOT coming to the top when I click on its parent and vice versa.
Mine are not brought forward. 

It is a PythonCard native child window

#child window for editing the raw text in an entry
path = os.path.join(self.stack.app.applicationDirectory,
'pcTextEditing')
rsrc =
res.ResourceFile(model.internationalResourceName(path)).getResource()
self.textEditWindow = pcTextEditing(self.stack, self,
rsrc.stack.backgrounds[0])

I also have a wxpython child window and it is not brought forward.
In the parent:

self.iechild = IeChildFrame(self.panel, -1, "browser
preview",wx.wxDefaultPosition,(450, 450))
self.iechild.iep.ie.Navigate("about:blank")

in the child
class IeChildFrame(wx.wxFrame):
    def __init__(self, parent, ID, title, pos, size):
        wx.wxFrame.__init__(self, parent, ID, title, pos, size,
                         wx.wxDEFAULT_FRAME_STYLE |
wx.wxFRAME_NO_TASKBAR)


>  -----Original Message-----
>  From: Kevin Altis [mailto:altis@[...].com]
>  Sent: Wednesday, May 22, 2002 2:26 AM
>  To: David Primmer
>  Subject: RE: [Pythoncard-users] locking all windows to same level in
the Z
>  order
>  
>  I'm not sure if I know exactly what you mean, so I'm not sure how this
is
>  done in wxPython. I think that depending on the window type defined in
the
>  wxFrame flags you can influence window order. On Windows the runtime
>  windows
>  in PythonCard are child frames that when one is brought forward all
>  windows
>  are brought forward. Is this the behavior you are talking about? The
child
>  background windows to get this behavior might need a hook in the
activate
>  event.
>  
>  You can go ahead and investigate this, ask questions on the wxPython
list
>  and report back to the PythonCard list. I suspect we will need a more
>  standard way of referring to the "top" and "child" windows in
PythonCard,
>  but it may be acceptable to just use the built-in GetParent()..., but
then
>  the question will be how a PythonCard app will override the behavior.
>  
>  Anyway, plug away and I'll look at it in June.
>  
>  ka
>  
>  > -----Original Message-----
>  > From: pythoncard-users-admin@[...].net
>  > [mailto:pythoncard-users-admin@[...].net]On Behalf Of
David
>  > Primmer
>  > Sent: Tuesday, May 21, 2002 9:30 PM
>  > To: 'pythoncard-Users'
>  > Subject: [Pythoncard-users] locking all windows to same level in the
Z
>  > order
>  >
>  >
>  > I have multiple windows open with my app and I'd like my app to
emulate
>  > the standard windows behavior of making all my app's windows to the
top
>  > of the z order when I click on one window. I also think this should
be
>  > the default in PythonCard. If people were to agree that it could be
part
>  > of the framework then I won't bother coding it into my app and wait
for
>  > it.
>  >
>  > davep


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved