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

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 -----

From:
steve

To: wxpython-users@googlegroups.com

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 wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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 hakugin.gin@gmail.com 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 wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

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

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

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