-1

When I am running my script in CMD, it displays error:

ImportError: cannot import name 'floatbox' from 'easygui'

So I tried uninstalling and installing easygui several times, but same result.

UltraStudioLTD
  • 300
  • 2
  • 14
  • 1
    Welcome to Stack Overflow. Please read about [asking questions](https://stackoverflow.com/help/asking). Please [edit] the question to include more than just the error message you are getting, consider a [mre]. – Jason Aller Jun 19 '19 at 14:51

2 Answers2

0

Looks like you researched easygui poorly and don't know options of it.

Easygui doesn't have floatbox option and I think it will come in next update: easygui 0.99.

So you are trying impossible thing. Read docs at Easygui 0.98.1 Latest

NOTE: Remember to ask good question to get good quality answers. You can see tutorial here ===> How to ask good questions.

UltraStudioLTD
  • 300
  • 2
  • 14
0

Easygui 0.98.1 does not have a floatbox. However, there is a simple solution, read the data as string and then convert it to float:

import easygui as eg
value = eg.enterbox(msg="Introduce a value")
value = float(value)