Menu

#163 Notebook Page field takes integers instead of control

open
None
6
2003-12-29
2003-12-17
No

When associating a control with a notebook page it only
takes integers resulting in code like:

parent.AddPage(imageId=-1, page=0, select=True,
text='Pages0')

Changing this to:

parent.AddPage(imageId=-1, page=self.staticText2,
select=True,
text='Pages0')

Makes it work. I think this should be a combo box field
of child controls to the notebook control (or at least a
text entry field).

Discussion

  • Riaan Booysen

    Riaan Booysen - 2003-12-29

    Logged In: YES
    user_id=438

    I don't know how you got an integer as a page.

    Please add the exact steps you used to this report.

    The standard way of adding a control to the notebook
    works fine:

    * Add a page in the Notebook.Pages collection editor.
    * Create the new page by clicking on the palette for
    the control and then on the red dashed area of the
    newly created page.

    Riaan.

     
  • Riaan Booysen

    Riaan Booysen - 2003-12-29
    • priority: 5 --> 6
    • assigned_to: nobody --> riaan
     
  • Nobody/Anonymous

    Logged In: NO

    i got the same - it is a newbie-problem, maybe best solved in taking that "Howto add a page to a notebook"
    in the "getting started docs".
    Problem-construction:

    - create a notebook
    - props -> pages -> bag-collector -> new page

    if you now go immediately back to constr and click in the pages-field an integer-select appears.
    Newbies as me come to that idea by repeating the steps from the sizer-tutorial, hoping they can
    link existing Components to a notebook-page.

    best regards

     

Log in to post a comment.