Re: Adding a radio button causes a error

M A <[email protected]> Sun, 25 Aug 2019 10:06:01 -0400
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
> On Aug 25, 2019, at 6:29 AM, Dietmar Schwertberger <[email protected]> wrote:
> 
> On 24.08.2019 16:08, M A wrote:
>> When adding a radio button to a sizer, an error occurs.
> 
> Thanks. That's fixed now.
> 
> Regards,
> 
> Dietmar
> 


Thank you very much for fixing it. It works now.

I should have reported this yesterday but I thought fixing one kind of radio button would fix the other. The RadioBox widget also does not work when adding it to a window.

Here is the error log:

ERROR   : None
An unexpected error occurred!

Exception type:      <class 'NameError'>
Exception details:   name 'label' is not defined

Application stack traceback:
  File "/Users/user/Documents/Development/Projects/Python/wxGlade/edit_base.py", line 700, in on_drop_widget
    new_widget = common.widgets[common.widget_to_add](self.parent, self.pos)
  File "/Users/user/Documents/Development/Projects/Python/wxGlade/widgets/radio_box/radio_box.py", line 191, in builder
    editor = EditRadioBox(label, parent, label, [[u'choice 1'],], 1, 0, pos)

Date and time:       2019-08-25T10:03:30.990331
Python version:      3.7.2
wxPython version:    4.0.3
wxWidgets platform:  __WXMAC__
wxGlade version:     0.9.9pre