Dynamic creation of dialog/w wxRadioBox
Status: Beta
Brought to you by:
riaan
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
Example application
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.