Menu

#9 Dynamic creation of dialog/w wxRadioBox

closed
None
5
2003-02-25
2002-03-21
No

Scenario: Draw a dialog using BOA using wxRadioBox. Then, add code to dynamically build items in
radiobox.

Problem: Next time trying to invoke GUI dialog builder (its nice to see what you are doing instead of
guessing coordinates etc) it will complain about variable this or that (that was added to
dynamically build the content in the dialog) not exists in the class.

It does not seem to matter how the class variable is declared (globally in the class or in
constructor)

Example attached

Discussion

  • David Sparrman

    David Sparrman - 2002-03-21

    Example application

     
  • Riaan Booysen

    Riaan Booysen - 2002-06-21

    Logged In: YES
    user_id=438

    You cannot just change the generated code and expect the
    Frame Designer to understand. Some limited and spesific
    changes are allowed (and encouraged)

    See the page MixingSource.html in the documentation.

    In your case you would add:

    self.some_choices = ['1', '2', '3']

    right above self._init_ctrls()

    Also remove your init_data call, it is not needed.

     
  • Riaan Booysen

    Riaan Booysen - 2003-02-25
    • assigned_to: nobody --> riaan
    • status: open --> closed
     

Log in to post a comment.