dealing with windows

Hi! Suposing I have created two frames (mainWindow and secondWindow). If
I'm at mainWindow and it has a 'next' button that takes me to
secondWindow, when this one opens, mainWindow is not suposed to be
visible (or unless it needs to be unavailable). But, if I press 'cancel'
button at secondWindow, what's the best way to have mainWindow visible
and available again? It is, if I get out of a window, I want to go back
to previous window. Does wx provides that? Thank you in advance,

It sounds like you might want to use wxWizard. See the wxPython Demo.

···

On Tue, Apr 16, 2013 at 1:23 AM, Sarah Marques sarahbmarques@gmail.com wrote:

Hi! Suposing I have created two frames (mainWindow and secondWindow). If
I’m at mainWindow and it has a ‘next’ button that takes me to secondWindow, when this one opens, mainWindow is not suposed to be visible (or unless it needs to be unavailable). But, if I press ‘cancel’ button at secondWindow, what’s the best way to have mainWindow visible and available again? It is, if I get out of a window, I want to go back to previous window. Does wx provides that? Thank you in advance,

Hi,

Hi! Suposing I have created two frames (mainWindow and secondWindow). If

I’m at mainWindow and it has a ‘next’ button that takes me to

secondWindow, when this one opens, mainWindow is not suposed to be

visible (or unless it needs to be unavailable). But, if I press ‘cancel’

button at secondWindow, what’s the best way to have mainWindow visible

and available again? It is, if I get out of a window, I want to go back

to previous window. Does wx provides that? Thank you in advance,

I agree with Che. This sounds a lot like a wizard. There’s an example in the demo. I’ve also written a couple of tutorials on the subject:

It’s possible that all you really want to do is have a main window that can open a second window. If that’s the case, I have an example of that as well:

Good luck and happy coding!
Mike

···

On Tuesday, April 16, 2013 12:23:34 AM UTC-5, sarah marques wrote:

a wxWizard alternative

switcher.py (2.47 KB)

···

On Tue, Apr 16, 2013 at 1:23 AM, Sarah Marques sarahbmarques@gmail.com wrote:

Hi! Suposing I have created two frames (mainWindow and secondWindow). If

I’m at mainWindow and it has a ‘next’ button that takes me to

secondWindow, when this one opens, mainWindow is not suposed to be

visible (or unless it needs to be unavailable). But, if I press ‘cancel’

button at secondWindow, what’s the best way to have mainWindow visible

and available again? It is, if I get out of a window, I want to go back

to previous window. Does wx provides that? Thank you in advance,

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/groups/opt_out.