Hello
I would make a wx.FoldPanelBar.
Treekonten
···
------------------------------------------------------------------------
class Konten(fpb.FoldPanelBar):
def __init__(self, parent):
fpb.FoldPanelBar.__init__(self, parent, -1,size = wx.Size(200, 300),
style=fpb.FPB_DEFAULT_EXTRASTYLE)
self.panel = self.AddFoldPanel(_("Eltern - Konto"))
self.tree = TreeKonten(self.panel)
self.AddFoldPanelWindow(self.panel, self.tree)
self.Expand(self.panel)
-------------------------------------------------------------------------
main
-------------------------------------------------------------------------
self.parent = treekonten.Konten(self.panel)
self.Sizer = wx.FlexGridSizer(4, 2)
self.Sizer.AddGrowableCol(1)
self.Sizer.AddGrowableRow(1)
self.Sizer.Add(self.lblName, 0, wx.LEFT | wx.TOP, 10)
self.Sizer.Add(self.txtName, 0, wx.ALL ^ wx.BOTTOM | wx.EXPAND, 10)
self.Sizer.Add((10,10))
self.Sizer.Add(self.parent, 0, wx.EXPAND |wx.ALL ^ wx.BOTTOM, 10)
-------------------------------------------------------------------------
Now when I resize the Frame, the FoldPanelBars Width will be the same, then
the Width from the Frame.
But the Height is all the time the same. It resize only the width.
Thx for Help
Micha
As I am not the author of the wxPython version, I am the author of the component it was modelled after. There is a small design flaw in it where the width of the total bar is not propagated to the childeren. As this is a minor thing to do, you should as Andrea Gavana if he can do it for the python version as it is totally written from scratch.
It must not be much of use, at least you know what the problem is
···
On 7/15/06, Micha Reiser < micha.reiser@famreiser.ath.cx> wrote:
Hello
I would make a wx.FoldPanelBar
.
Treekonten
class Konten(fpb.FoldPanelBar):
def init(self, parent):
fpb.FoldPanelBar.init(self, parent, -1,size = wx.Size(200, 300),
style=fpb.FPB_DEFAULT_EXTRASTYLE)
self.panel = self.AddFoldPanel(_(“Eltern - Konto”))
self.tree = TreeKonten(self.panel)
self.AddFoldPanelWindow(self.panel, self.tree)
self.Expand(self.panel)
main
self.parent
= treekonten.Konten(self.panel)
self.Sizer = wx.FlexGridSizer(4, 2)
self.Sizer.AddGrowableCol(1)
self.Sizer.AddGrowableRow(1)
self.Sizer.Add(self.lblName, 0, wx.LEFT | wx.TOP, 10)
self.Sizer.Add(self.txtName
, 0, wx.ALL ^ wx.BOTTOM | wx.EXPAND, 10)
self.Sizer.Add((10,10))
self.Sizer.Add(self.parent, 0, wx.EXPAND |wx.ALL ^ wx.BOTTOM, 10)
Now when I resize the Frame, the FoldPanelBars Width will be the same, then
the Width from the Frame.
But the Height is all the time the same. It resize only the width.
Thx for Help
Micha
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Oops I misread. You meant height. Well that is the same issue actually. The height is calculated once and not changed if the children change the height. This needs to be also added.
With regards,