Error trying to generate notebook on event.

Hi:

I am having some issues using the menu event. I am trying to generate
a notebook on a menu action.
I can create the menu independently, but when I try to do it through a
function, I get the following error to my terminal:

** (python:2377): CRITICAL **: murrine_style_draw_box_gap: assertion
`height >= -1' failed

Here is my python and wx info:

2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
2.8.10.1 (gtk2-unicode)

I have attached a sample program that reproduces the error.
The commented out area is what I would use to generate the notebook
within the primary frame.
If I am doing something wrong, please let me know how I am misusing wx.

Thanks

Lewis

basetest.py (1.93 KB)

Hi,

Hi:

I am having some issues using the menu event. I am trying to generate
a notebook on a menu action.
I can create the menu independently, but when I try to do it through a
function, I get the following error to my terminal:

** (python:2377): CRITICAL **: murrine_style_draw_box_gap: assertion
`height >= -1' failed

Here is my python and wx info:

2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
2.8.10.1 (gtk2-unicode)

I have attached a sample program that reproduces the error.
The commented out area is what I would use to generate the notebook
within the primary frame.
If I am doing something wrong, please let me know how I am misusing wx.

You need to get the layout to happen so that the panel we be resized
to fit the frame. Call 'self.SendSizeEvent()' at the end of your
NewInput method.

Note: This will only work for the first notebook you add. If you want
it to be able to add more notebooks you should create one main child
panel of the frame and then add each newPanel to that panels sizer and
call Layout() afterwards to relayout the window.

Cody

ยทยทยท

On Tue, Oct 5, 2010 at 9:12 AM, Lewis Lloyd <lewis.john.lloyd@gmail.com> wrote: