Is it possible to build multi-window wxpython applications?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to build multi-window wxpython applications?

steve
Hi,

I would like to know if it is possible to build multi-window wxpython applications, for example I will have a main window where user will work on, and a second window (like a window displaying charts), and both windows should be interactive and be able to communicate with each other.

Regards

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to build multi-window wxpython applications?

Jacob Kruger
Seems so.
 
Thing am currently busy working on has separate classes/modules for different parts of interface, some of which invoke each other, and what am currently doing is passing calling object as a parameter to the __init__ function, to then let me pass information back to it at times, etc.
 
Will, hopefully, be posting some of the source code bit later, after finish off a version of this whole thing, but, yes, it's also all pretty much done/handled using wxPython, etc.
 
Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..."
----- Original Message -----
Sent: Friday, 21 March, 2014 11:58 AM
Subject: [wxPython-users] Is it possible to build multi-window wxpython applications?

Hi,

I would like to know if it is possible to build multi-window wxpython applications, for example I will have a main window where user will work on, and a second window (like a window displaying charts), and both windows should be interactive and be able to communicate with each other.

Regards

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to build multi-window wxpython applications?

Mike Stover
In reply to this post by steve
I recall seeing a demo of 2 wxPython windows from the same application interacting with each other but I don't remember where. I will check my dev computer later and see if I still have the source code from it saved.

On Friday, March 21, 2014 5:58:41 AM UTC-4, steve wrote:
Hi,

I would like to know if it is possible to build multi-window wxpython applications, for example I will have a main window where user will work on, and a second window (like a window displaying charts), and both windows should be interactive and be able to communicate with each other.

Regards

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to build multi-window wxpython applications?

David Woods-3
It's absolutely possible.  Check out the MDIParentFrame and MDIChildFrame objects as a way that wxPython provides some infrastructure for managing multiple windows.  Or you can roll your own, as I have done with http://www.transana.org .

David


On Fri, Mar 21, 2014 at 10:20 AM, Mike Stover <[hidden email]> wrote:
I recall seeing a demo of 2 wxPython windows from the same application interacting with each other but I don't remember where. I will check my dev computer later and see if I still have the source code from it saved.


On Friday, March 21, 2014 5:58:41 AM UTC-4, steve wrote:
Hi,

I would like to know if it is possible to build multi-window wxpython applications, for example I will have a main window where user will work on, and a second window (like a window displaying charts), and both windows should be interactive and be able to communicate with each other.

Regards

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to build multi-window wxpython applications?

Mike Driscoll
In reply to this post by steve
Hi Steve,

On Friday, March 21, 2014 4:58:41 AM UTC-5, steve wrote:
Hi,

I would like to know if it is possible to build multi-window wxpython applications, for example I will have a main window where user will work on, and a second window (like a window displaying charts), and both windows should be interactive and be able to communicate with each other.

Regards

Yes, you are able to do that with wxPython. I would recommend using pubsub for this purpose. When you are working in the main window, some event will trigger and send (or publish) a message via pubsub to the second window. The second window will have a listener that's bound to a handler that will update its display.

- Mike

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to build multi-window wxpython applications?

efahl
In reply to this post by steve
To reiterate the other responses, yes, absolutely.

Our applications all use the AUI to create a multi-window environment with the AUI allowing the windows to be dockable in the main frame, so it's really the user's choice as to whether to have one or many windows.  The main frame always contains a graphical rendering of a physical model, but the dockable windows include the command line/logging window, property editor, session tree and so on...

http://www.wxpython.org/docs/api/wx.aui-module.html

Eric

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to build multi-window wxpython applications?

Rufus V. Smith
In reply to this post by steve
There are several responses here, but they may be overcomplicating what you are trying to do:  It may be that all you need do is create frames with no parent!
With no parent, they are not tied to your "main" frame and can be dragged around.   Keep a list of the frames you make because they will no longer be children.
With my application, I added a "raise main" key to the floating windows which would bring the main (control) screen to the front if it is covered by the others.  The main screen also
has a "raise others" and "cascade others" button   when the terminal gets cluttered.


On Friday, March 21, 2014 5:58:41 AM UTC-4, steve wrote:
Hi,

I would like to know if it is possible to build multi-window wxpython applications, for example I will have a main window where user will work on, and a second window (like a window displaying charts), and both windows should be interactive and be able to communicate with each other.

Regards

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.