question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Checkbox` does not work when using Windows

See original GitHub issue

Description

When trying to use a Checkbox question, one cannot move the cursor up and down to select the boxes to check.

Example

Consider the following program:

import inquirer

questions = [
    inquirer.Checkbox(
        "food",
        "What do you like to eat?",
        choices=["banana", "apple", "ice-creem"]
    )
]
answers = inquirer.prompt(questions)
print(answers)

Reproduction steps are:

  1. Copy the code above
  2. Run it on Windows computer in Power Shell
  3. Check the banana option (that works)
  4. Press the down arrow to move to the second option (that doesn’t work)

Additional Information

Windows 10 Python version: 3.9.5 Inquirer version: 2.9.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
Cube707commented, Jun 26, 2022

I decided to take the time to provide a proper workaround as @magmax is currently not reacting.

Whoever needs an updatet version of python-readchar urgently can install my fix from my fork by using git+https://github.com/Cube707/python-readchar.git@v3.0.6 either in a requirements.txt file or directly from the comandline as:

pip install git+https://github.com/Cube707/python-readchar.git@v3.0.6

it is marked as version 3.0.6-dev0, so it will override a existing 3.0.5 installation but will be overriden by a official version 3.0.6 release (when it’s released…). See https://github.com/magmax/python-readchar/pull/76 for more information

I am also working on a version 4 of readchar (what @zixuan945 linked to above). As this will intreduce breaking changes and is not fully developed jet, I would not recomend using that version.

1reaction
zixuan945commented, Jun 13, 2022

@RazvanCretu @Cube707 Before the official fix, you can replace readchar folder of the attached files readchar.zip to your current python module path. it’s a file copies of magmax/python-readchar#71 or you can checkout that pr and replace it by yourself

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Do this for all conflicts checkbox not working Windeos 10 ...
This is an old problem and I see Microsoft has not fixed it. ... No one does QA on something so important as...
Read more >
Fix: Item Checkboxes Cannot Be Disabled on Windows 11
If you can't disable checkboxes in File Explorer, try disabling the checkbox option in Folder Settings. Then, edit your Registry settings and ...
Read more >
How to insert a checkbox in Microsoft Word, Excel ... - IT PRO
Step 1: Click the checkbox icon in the Developer tab. screenshot of symbols menu in Word. Changing the checkbox symbol in Word is...
Read more >
Insert a Clickable Checkbox | Create a Checklist in Word
In this video I demonstrate how to add a clickable checkbox to your Microsoft Word document. You can choose how your checkbox appears...
Read more >
How to insert a checkbox in Word - Digital Trends
1. Select the File tab in the top-left corner and then choose Options in the bottom-left corner of the next screen. 2. Click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found