| Newsgroups |
gmane.comp.python.wxpython |
| Message-ID |
<[email protected]> |
------=_Part_84_365185233.1649314034448
Content-Type: multipart/alternative;
boundary="----=_Part_85_1563157346.1649314034448"
------=_Part_85_1563157346.1649314034448
Content-Type: text/plain; charset="UTF-8"
<https://stackoverflow.com/posts/71770014/timeline>
Hi all,
I have the following code which generates a MultiSplitterWindow with four
panels:
import wx
from wx.lib.splitter import MultiSplitterWindow
class SamplePanel(wx.Panel):
def __init__(self, parent, colour):
wx.Panel.__init__(self, parent)
self.SetBackgroundColour(colour)
class MainFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="MultiSplitterWindow Tutorial")
splitter = MultiSplitterWindow(self, style=wx.SP_LIVE_UPDATE)
colours = ["pink", "yellow", "sky blue", "Lime Green"]
for colour in colours:
panel = SamplePanel(splitter, colour)
splitter.AppendWindow(panel)
splitter.SetOrientation(wx.VERTICAL)
splitter.SetMinimumPaneSize(50)
self.Show()
if __name__ == "__main__":
app = wx.App(False)
frame = MainFrame()
app.MainLoop()
When running that code, the SetMinimumPaneSize method produces its effect
for the panels located over the sashes but not for the panels located below
the sashes. The results of this is that the panels below the sashes can
completely disappear. Is that a bug or do I misunderstand something about
the SetMinimumPaneSize method ?
Thank you very much
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/c5f4f853-0dc7-4570-b088-453e1f9ef858n%40googlegroups.com.
------=_Part_85_1563157346.1649314034448
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<span>
=20
</span>
=20
=20
<a href=3D"https://stackoverflow.com/posts/71770014/timeline"></a><=
div><div>
</div>
</div>
=20
<div>
=20
<div>
=20
<p>Hi all,<br></p><p>I have the following code which generates a MultiSplit=
terWindow with four panels:</p>
<span><span><span>import</span> wx</span></span></div><div><span><span><spa=
n>from</span> wx.lib.splitter <span>import</span> MultiSplitterWindow</span=
></span></div><div><span><span><span><br></span></span></span></div><div><s=
pan><span><span>class</span> <span>SamplePanel</span>(wx.Panel):</span></sp=
an></div><div><span><span><span> def</span> __init__(self=
, parent, colour):</span></span></div><div><span><span> &n=
bsp; wx.Panel.__init__(self, parent)</span></span></div><=
div><span><span> self.SetBackgrou=
ndColour(colour)</span></span></div><div><span><span><span><br></span></spa=
n></span></div><div><span><span><span>class</span> <span>MainFrame</span>(w=
x.Frame):</span></span></div><div><span><span><span> def<=
/span> __init__(self): <br></span></span></div><div><span><span>  =
; wx.Frame.__init__(self, <span>None</span>, =
title=3D<span>"MultiSplitterWindow Tutorial"</span>)</span></span></div><di=
v><span><span><br></span></span></div><div><span><span> &n=
bsp; splitter =3D MultiSplitterWindow(self, style=3Dwx.SP=
_LIVE_UPDATE)</span></span></div><div><span><span> &=
nbsp; colours =3D [<span>"pink"</span>, <span>"yellow"</span>, =
<span>"sky blue"</span>, <span>"Lime Green"</span>]</span></span></div><div=
><span><span><span><br></span></span></span></div><div><span><span><span>&n=
bsp; for</span> colour <span>in</span> =
colours:</span></span></div><div><span><span> =
panel =3D SamplePanel(splitter, colour=
)
splitter.AppendWindow(panel) <br></span></span></div><div><span=
><span><br></span></span></div><div><span><span> &nb=
sp; splitter.SetOrientation(wx.VERTICAL)</span></span></div><di=
v><span><span> splitter.SetMinimu=
mPaneSize(<span>50</span>)</span></span></div><div><span><span> =
self.Show()</span></span></div><div><span><s=
pan><span><br></span></span></span></div><div><span><span><span>if</span>&n=
bsp; __name__ =3D=3D <span>"__main__"</span>:</span></span></div><div><span=
><span> app =3D wx.App(<span>False</span>)</span></span><=
/div><div><span><span> frame =3D MainFrame()</span></span=
></div><div><span><span> app.MainLoop()
</span></span>
<p>When running that code, the SetMinimumPaneSize method produces its=20
effect for the panels located over the sashes but not for the panels=20
located below the sashes. The results of this is that the panels below=20
the sashes can completely disappear. Is that a bug or do I misunderstand
something about the SetMinimumPaneSize method ?</p><p>Thank you very much<=
/p><p>Eric<br></p>
</div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxpy=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxpython-users/c5f4f853-0dc7-4570-b088-453e1f9ef858n%40googlegro=
ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/wxpython-users/c5f4f853-0dc7-4570-b088-453e1f9ef858n%40googlegroups.=
com</a>.<br />
------=_Part_85_1563157346.1649314034448--
------=_Part_84_365185233.1649314034448--