Author: Date: Subject:
Wesley Nitsckie
2008-07-16 12:12:30
[wxpython-users] Switching Panels
I am using the AUI control panels. My center panel is my working area but I
am
really running into difficulty switching between different panel in the
center. I start off
with a html control then switches to a panel then I want to switch to a
different panel,
then switch back to the html panel. You get my drift...
So want is the best/easiest way for switching between all these. I have
tried Hide() and Destroy()
methods but i run into issues like the previous panel still diplaying in the
background.
Thanks
Wesley
<div dir="ltr">I am using the AUI control panels. My center panel is my working area but I am <br>really running into difficulty switching between different panel in the center. I start off<br>with a html control then switches to a panel then I want to switch to a different panel,<br>
then switch back to the html panel. You get my drift... <br><br>So want is the best/easiest way for switching between all these. I have tried Hide() and Destroy() <br>methods but i run into issues like the previous panel still diplaying in the background. <br>
<br>Thanks<br>Wesley<br></div>
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Author: Date: Subject:
Mark Guagenti
2008-07-16 08:06:36
Re: [wxpython-users] Switching Panels
We are using the wx.aui.notebook and if we want to "hide" a window we do the
following:
window.Hide()
notebook.RemovePage(self.notebook.GetPageIndex(window))
On Wed, Jul 16, 2008 at 5:12 AM, Wesley Nitsckie <[email protected]>
wrote:
> I am using the AUI control panels. My center panel is my working area but I
> am
> really running into difficulty switching between different panel in the
> center. I start off
> with a html control then switches to a panel then I want to switch to a
> different panel,
> then switch back to the html panel. You get my drift...
>
> So want is the best/easiest way for switching between all these. I have
> tried Hide() and Destroy()
> methods but i run into issues like the previous panel still diplaying in
> the background.
>
> Thanks
> Wesley
>
> _______________________________________________
> wxpython-users mailing list
> [email protected]
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
>
<div dir="ltr">We are using the wx.aui.notebook and if we want to "hide" a window we do the following:<br>window.Hide()<br>notebook.RemovePage(self.notebook.GetPageIndex(window))<br><br><div class="gmail_quote">On Wed, Jul 16, 2008 at 5:12 AM, Wesley Nitsckie <<a href="mailto:wesleynitsckie@gmail.com">wesleynitsckie@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">I am using the AUI control panels. My center panel is my working area but I am <br>
really running into difficulty switching between different panel in the center. I start off<br>with a html control then switches to a panel then I want to switch to a different panel,<br>
then switch back to the html panel. You get my drift... <br><br>So want is the best/easiest way for switching between all these. I have tried Hide() and Destroy() <br>methods but i run into issues like the previous panel still diplaying in the background. <br>
<br>Thanks<br>Wesley<br></div>
<br>_______________________________________________<br>
wxpython-users mailing list<br>
<a href="mailto:wxpython-users@lists.wxwidgets.org">wxpython-users@lists.wxwidgets.org</a><br>
<a href=" http://lists.wxwidgets.org/mailman/listinfo/wxpython-users" target="_blank"> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users</a><br>
<br></blockquote></div><br></div>
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Author: Date: Subject:
Wesley Nitsckie
2008-07-16 15:41:10
Re: [wxpython-users] Switching Panels
On Wed, Jul 16, 2008 at 3:06 PM, Mark Guagenti <[email protected]> wrote:
> We are using the wx.aui.notebook and if we want to "hide" a window we do
> the following:
> window.Hide()
> notebook.RemovePage(self.notebook.GetPageIndex(window))
>
So how do you do this with panels. I am already using the AUI manager
<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Jul 16, 2008 at 3:06 PM, Mark Guagenti <<a href="mailto:mgenti@gentiweb.com">mgenti@gentiweb.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">We are using the wx.aui.notebook and if we want to "hide" a window we do the following:<br>window.Hide()<br>notebook.RemovePage(self.notebook.GetPageIndex(window))<br></div></blockquote><div><br>So how do you do this with panels. I am already using the AUI manager <br>
</div></div><br></div>
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Author: Date: Subject:
Mark Guagenti
2008-07-16 10:00:42
Re: [wxpython-users] Switching Panels
Not sure since I'm working with the AUI notebook instead.
On Wed, Jul 16, 2008 at 8:41 AM, Wesley Nitsckie <[email protected]>
wrote:
>
>
> On Wed, Jul 16, 2008 at 3:06 PM, Mark Guagenti <[email protected]>
> wrote:
>
>> We are using the wx.aui.notebook and if we want to "hide" a window we do
>> the following:
>> window.Hide()
>> notebook.RemovePage(self.notebook.GetPageIndex(window))
>>
>
> So how do you do this with panels. I am already using the AUI manager
>
>
> _______________________________________________
> wxpython-users mailing list
> [email protected]
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
>
<div dir="ltr">Not sure since I'm working with the AUI notebook instead.<br><br><div class="gmail_quote">On Wed, Jul 16, 2008 at 8:41 AM, Wesley Nitsckie <<a href="mailto:wesleynitsckie@gmail.com">wesleynitsckie@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><br><br><div class="gmail_quote"><div class="Ih2E3d">On Wed, Jul 16, 2008 at 3:06 PM, Mark Guagenti <<a href="mailto:mgenti@gentiweb.com" target="_blank">mgenti@gentiweb.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">We are using the wx.aui.notebook and if we want to "hide" a window we do the following:<br>window.Hide()<br>notebook.RemovePage(self.notebook.GetPageIndex(window))<br></div></blockquote></div><div>
<br>So how do you do this with panels. I am already using the AUI manager <br>
</div></div><br></div>
<br>_______________________________________________<br>
wxpython-users mailing list<br>
<a href="mailto:wxpython-users@lists.wxwidgets.org">wxpython-users@lists.wxwidgets.org</a><br>
<a href=" http://lists.wxwidgets.org/mailman/listinfo/wxpython-users" target="_blank"> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users</a><br>
<br></blockquote></div><br></div>
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Author: Date: Subject:
Marco De Felice
2008-07-17 16:18:03
Re: [wxpython-users] Switching Panels
Wesley Nitsckie wrote:
> I am using the AUI control panels. My center panel is my working area but I
> am
> really running into difficulty switching between different panel in the
> center. I start off
> with a html control then switches to a panel then I want to switch to a
> different panel,
> then switch back to the html panel. You get my drift...
I have a similar situation in wich I do place a panel in the center
layer hiding the previous "centerpane" and showing "otherpane" in the
center, in my code "otherpane" is already added to the auimanager, but
shown in a top layer:
self._mgr.AddPane(panel,
wx.aui.AuiPaneInfo().Name("centerpane").CenterPane().Layer(0).Center())
self._mgr.AddPane(panel, wx.aui.AuiPaneInfo().Name("otherpane").
.Layer(1).Top().Hide()
To show "otherpane" in the center, hiding "centerpane":
self._mgr.GetPane("centerpane").Hide()
self._mgr.GetPane("otherpane").Layer(1).Center().Show()
self._mgr.Update()
To switch back to the "otherpane" on top:
self._mgr.GetPane("centerpane").Show()
self._mgr.GetPane("otherpane").Layer(1).Top()
self._mgr.Update()
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Author: Date: Subject:
Wesley Nitsckie
2008-07-18 11:21:14
Re: [wxpython-users] Switching Panels
On Thu, Jul 17, 2008 at 4:18 PM, Marco De Felice <[email protected]> wrote:
> Wesley Nitsckie wrote:
>
>> I am using the AUI control panels. My center panel is my working area but
>> I
>> am
>> really running into difficulty switching between different panel in the
>> center. I start off
>> with a html control then switches to a panel then I want to switch to a
>> different panel,
>> then switch back to the html panel. You get my drift...
>>
>
> I have a similar situation in wich I do place a panel in the center layer
> hiding the previous "centerpane" and showing "otherpane" in the center, in
> my code "otherpane" is already added to the auimanager, but shown in a top
> layer:
>
> self._mgr.AddPane(panel,
> wx.aui.AuiPaneInfo().Name("centerpane").CenterPane().Layer(0).Center())
>
> self._mgr.AddPane(panel, wx.aui.AuiPaneInfo().Name("otherpane").
> .Layer(1).Top().Hide()
>
> To show "otherpane" in the center, hiding "centerpane":
>
> self._mgr.GetPane("centerpane").Hide()
> self._mgr.GetPane("otherpane").Layer(1).Center().Show()
> self._mgr.Update()
>
> To switch back to the "otherpane" on top:
>
> self._mgr.GetPane("centerpane").Show()
> self._mgr.GetPane("otherpane").Layer(1).Top()
> self._mgr.Update()
Thanks,
This works much better than the other options!!
Wesley
<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Jul 17, 2008 at 4:18 PM, Marco De Felice <<a href="mailto:m.defel@gmail.com">m.defel@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Wesley Nitsckie wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am using the AUI control panels. My center panel is my working area but I<br>
am<br>
really running into difficulty switching between different panel in the<br>
center. I start off<br>
with a html control then switches to a panel then I want to switch to a<br>
different panel,<br>
then switch back to the html panel. You get my drift...<br>
</blockquote>
<br></div>
I have a similar situation in wich I do place a panel in the center layer hiding the previous "centerpane" and showing "otherpane" in the center, in my code "otherpane" is already added to the auimanager, but shown in a top layer:<br>
<br>
self._mgr.AddPane(panel,<br>
wx.aui.AuiPaneInfo().Name("centerpane").CenterPane().Layer(0).Center())<br>
<br>
self._mgr.AddPane(panel, wx.aui.AuiPaneInfo().Name("otherpane"). .Layer(1).Top().Hide()<br>
<br>
To show "otherpane" in the center, hiding "centerpane":<br>
<br>
self._mgr.GetPane("centerpane").Hide()<br>
self._mgr.GetPane("otherpane").Layer(1).Center().Show()<br>
self._mgr.Update()<br>
<br>
To switch back to the "otherpane" on top:<br>
<br>
self._mgr.GetPane("centerpane").Show() self._mgr.GetPane("otherpane").Layer(1).Top()<br>
self._mgr.Update()</blockquote><div><br>Thanks,<br><br>This works much better than the other options!!<br><br>Wesley <br></div></div><br></div>
_______________________________________________
wxpython-users mailing list
[email protected]
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
|