Frame with multiprocess

7 views
Skip to first unread message

Paulo Henrique Junqueira Amorim

unread,
Dec 21, 2009, 12:31:13 PM12/21/09
to wxpytho...@googlegroups.com
Hi,

I wonder if the wxPython supports multiprocess between the Frame.

For example. My application have Frame1 and Frame2, Frame1 have button to call Frame2. I would like to open the Frame2 in another process. This is possible with wxPython?

How could you do that? which class can I study?

Sorry for the English.

Regards,
Paulo Amorim

Robin Dunn

unread,
Dec 21, 2009, 4:05:54 PM12/21/09
to wxpytho...@googlegroups.com
On 12/21/09 9:31 AM, Paulo Henrique Junqueira Amorim wrote:
> Hi,
>
> I wonder if the wxPython supports multiprocess between the Frame.
>
> For example. My application have Frame1 and Frame2, Frame1 have button
> to call Frame2. I would like to open the Frame2 in another process. This
> is possible with wxPython?

You can design the two as separate applications and then have the button
launch the application for Frame2 with wx.Execute or any of the Python
standard process creation APIs.

--
Robin Dunn
Software Craftsman
http://wxPython.org

Paulo Henrique Junqueira Amorim

unread,
Dec 21, 2009, 4:57:25 PM12/21/09
to wxpytho...@googlegroups.com
Robin,

Thanks!

It is possible to hide the title of the second application (Frame2) that will appear in the taskbar of the Windows?

Regards
Paulo

_____________________________________________________________________________________

2009/12/21 Robin Dunn <ro...@alldunn.com>

Robin Dunn

unread,
Dec 23, 2009, 1:04:46 PM12/23/09
to wxpytho...@googlegroups.com
On 12/21/09 1:57 PM, Paulo Henrique Junqueira Amorim wrote:
> Robin,
>
> Thanks!
>
> It is possible to hide the title of the second application (Frame2) that
> will appear in the taskbar of the Windows?

See the styles available for wx.Frame.

Paulo Henrique Junqueira Amorim

unread,
Dec 23, 2009, 5:29:56 PM12/23/09
to wxpytho...@googlegroups.com
One last question,

The only way to do this in wx is the way you spoke earlier?

I also need a separate part of my application in another process, but it is a wx.Panel that is within a wx.aui.AuiManager.

Thanks again.

Merry Christmas!


Regards,
Paulo



2009/12/23 Robin Dunn <ro...@alldunn.com>

Robin Dunn

unread,
Dec 28, 2009, 9:06:11 PM12/28/09
to wxpytho...@googlegroups.com
On 12/23/09 2:29 PM, Paulo Henrique Junqueira Amorim wrote:
> One last question,
>
> The only way to do this in wx is the way you spoke earlier?
>
> I also need a separate part of my application in another process, but it
> is a wx.Panel that is within a wx.aui.AuiManager.

The top-level window that the panel is a child of would have to be in
the same process.

Another approach to consider is to put just the worker part of the code
(whatever the time-consuming thing is that produces the data to be
viewed in the GUI) in the other process without any GUI, and keep the
view/GUI in the main application and communicate between the two of them
using some form of IPC.

Reply all
Reply to author
Forward
0 new messages