I’m using aui.notebooks as the container for the plugin.
Strange enough the resizing of the aui.notebook doesn’t seem to work the same as a wx.notebook.
More specific: when calling Fit() on the main wx.frame, it doesn’t scale properly according to the content of the aui.notebook. When I’m using a wx.notebook it does scale properly.
Can someone point me in the good direction on this one, I guess I may have forgotten something silly?
Can anyone point me in the good direction with the problem described below? I sent this one earlier, but I didn’t get any response… Maybe more luck this time.
Also: Please don’t hesitate in giving comments/criticism how plugins are handled in this “plugin-framework”. The way it’s constructed is deliberately kept very simple, but it seems to work properly (except for the problem/limitation with the auto-resizing as described below).
Thanks in advance.
Tom.
···
---------- Forwarded message ----------
From: Tom Clerckxtclerckx@gmail.com
Date: 2009/5/2
I’m using aui.notebooks as the container for the plugin.
Strange enough the resizing of the aui.notebook doesn’t seem to work the same as a wx.notebook.
More specific: when calling Fit() on the main wx.frame, it doesn’t scale properly according to the content of the aui.notebook. When I’m using a wx.notebook it does scale properly.
Can someone point me in the good direction on this one, I guess I may have forgotten something silly?
Tom, just taking a very quick go with it, if you comment out both the
.Fit() lines
in Main, it lays out fine. But I couldn't get
self.notebook.SetSelection(newPanel)
to work for some reason, which you might want (to show the new plugin popping
up as the selected tab)--is this because your notebook is sitting
directly on the
frame? (often considered not a good idea, though I thought with a notebook it
wouldn't matter?).
btw, for your About, did you know there is a wx.AboutBox? See the demo.
Che
···
On Tue, May 5, 2009 at 3:57 AM, Tom Clerckx <tclerckx@gmail.com> wrote:
Hi all,
Can anyone point me in the good direction with the problem described below?
I sent this one earlier, but I didn't get any response.... Maybe more luck
this time.
Also: Please don't hesitate in giving comments/criticism how plugins are
handled in this "plugin-framework". The way it's constructed is deliberately
kept very simple, but it seems to work properly (except for the
problem/limitation with the auto-resizing as described below).
Thanks in advance.
Tom.
---------- Forwarded message ----------
From: Tom Clerckx <tclerckx@gmail.com>
Date: 2009/5/2
Subject: Resize frame containing a wx.aui.notebook/wx.notebook
To: wxpython-users@lists.wxwidgets.org
Hi all,
I'm still working on my plugin-framework.
I'm using aui.notebooks as the container for the plugin.
Strange enough the resizing of the aui.notebook doesn't seem to work the
same as a wx.notebook.
More specific: when calling Fit() on the main wx.frame, it doesn't scale
properly according to the content of the aui.notebook. When I'm using a
wx.notebook it does scale properly.