Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8592511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:46:02+00:00 2026-06-11T23:46:02+00:00

Possible Duplicate: How to remove initial wx.RadioBox selection? I’m working on an application that

  • 0

Possible Duplicate:
How to remove initial wx.RadioBox selection?

I’m working on an application that asks the user a series of questions with answers for each in a radiobox. The next question does not appear until you have answered the current one because it may depend on your answer.

My problem is that each question that shows up automatically has the first answer selected by default. I would like to have it start with nothing selected.

How can I achieve this?

Here’s the code I’m currently using for one of the questions:

import wx

hardBackOptions = ['Paperback','Hardback'];


class OptionsPanel1(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent)
        mainpanel = wx.Panel(self)


        self.cover1 = wx.RadioBox(self, label="Hardback or Paperback?",  pos=(20, 140), choices=hardBackOptions,  majorDimension=1, style=wx.RA_SPECIFY_COLS )



app = wx.App(False)
frame = wx.Frame(None, title="Book Pricing & Options", size=(1000,900))
nb = wx.Notebook(frame)


nb.AddPage(OptionsPanel1(nb), "Book Options")
frame.Show()
app.MainLoop()

EDIT: For what it’s worth, I ended up using wxChoice instead. Having a blank option in front of the dropdown works better for what I was trying to accomplish than having a blank option for a radio button. Here’s the change I made for anyone interested:

import wx

hardBackOptions = ['','Paperback','Hardback'];


class OptionsPanel1(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent)
        mainpanel = wx.Panel(self)
        self.coverLabel = wx.StaticText(self, label="Paperback or Hardback?", pos=(20,115))
        self.cover = wx.Choice(self, pos=(20, 140), choices=hardBackOptions)



app = wx.App(False)
frame = wx.Frame(None, title="Book Pricing & Options", size=(1000,900))
nb = wx.Notebook(frame)


nb.AddPage(OptionsPanel1(nb), "Book Options")
frame.Show()
app.MainLoop()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:46:03+00:00Added an answer on June 11, 2026 at 11:46 pm

    I don’t think that you’re supposed to do that. Radio button sets should always have one value selected. I would just add a default value that’s set such as one labeled “None”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: remove application icon from the taskbar using .net with c# I am
Possible Duplicate: Remove from the array elements that are repeated. in Ruby I would
Possible Duplicate: Remove application icon and title from Honeycomb action bar can this be
Possible Duplicate: Require a password to uninstall/remove application Hello everyone, I want to develop
Possible Duplicate: remove duplicate from string in PHP Have a string like: $str =
Possible Duplicate: php multi-dimensional array remove duplicate I have an array like this: $a
Possible Duplicate: How to remove border around text/input boxes? (Chrome) Is there a way
Possible Duplicate: php regexp: remove all attributes from an html tag $input = '<div
Possible Duplicate: How do I remove packages installed with Python's easy_install? I am asking
Possible Duplicate: How do you remove duplicates from a list in Python whilst preserving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.