When using wxRadioBox with style= wxRB_SINGLE, the box surrounding the
buttons is too tall. I have tried specifying a size, but this only seems
to affect the width and not the height. Is this a function of the sizers
instead? The code I am using to create the RadioBox is this:
#Create the radio box that displays the input source options. wxRB_SINGLE
makes them appear side by side
self.source=wxRadioBox(self, -1, majorDimension = 1,
label='Select input source:',
choices=['Select command below','Read input from file'],
size=(280,0), style= wxRB_SINGLE)
EVT_RADIOBOX(self, -1, self.SetMode)
When using wxRadioBox with style= wxRB_SINGLE, the box surrounding the
buttons is too tall. #Create the radio box that displays the input source options. wxRB_SINGLE
makes them appear side by side
self.source=wxRadioBox(self, -1, majorDimension = 1,
label='Select input source:',
choices=['Select command below','Read input from file'],
size=(280,0), style= wxRB_SINGLE)
EVT_RADIOBOX(self, -1, self.SetMode)
box = wxBoxSizer(wxVERTICAL)
How do you add the RadioBox to the Sizer? Hint: if you don't...there's
your problem!
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
When using wxRadioBox with style= wxRB_SINGLE, the box surrounding the
buttons is too tall. #Create the radio box that displays the input source options.
wxRB_SINGLE
makes them appear side by side
self.source=wxRadioBox(self, -1, majorDimension = 1,
label='Select input source:',
choices=['Select command below','Read input from file'],
size=(280,0), style= wxRB_SINGLE)
EVT_RADIOBOX(self, -1, self.SetMode)
box = wxBoxSizer(wxVERTICAL)
How do you add the RadioBox to the Sizer? Hint: if you don't...there's
your problem!
-Chris
I do. (I was about to add that when I hit the return button on my keyboard
and my mailer decided to send three copies of my message out -- sorry
about that)
The RadioBox is in a sizer with several other things. Could that be the
problem?
When using wxRadioBox with style= wxRB_SINGLE, the box surrounding the
buttons is too tall. I have tried specifying a size, but this only seems
to affect the width and not the height. Is this a function of the sizers
instead? The code I am using to create the RadioBox is this:
#Create the radio box that displays the input source options. wxRB_SINGLE
makes them appear side by side
self.source=wxRadioBox(self, -1, majorDimension = 1,
label='Select input source:',
choices=['Select command below','Read input from file'],
size=(280,0), style= wxRB_SINGLE)
EVT_RADIOBOX(self, -1, self.SetMode)
The wxRB_SINGLE style is for the wxRadioButton class, so wxRadioBox is probably interpreting it as something else.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!