3

Like

Enter = easygui.enterbox
print(Enter.text)

I don't know how to do that.What string name form easygui.enterbox?

Masked Man
  • 522
  • 1
  • 6
  • 21

1 Answers1

3

enterbox is a function, quote from the tutorial:

enterbox(msg='Enter something.', title=' ', default='', strip=True)

Show a box in which a user can enter some text. You may optionally specify some default text, which will appear in the enterbox when it is displayed.

Returns the text that the user entered, or None if he cancels the operation.

Example:

import easygui

value = easygui.enterbox()
print(value)

Hope that helps.

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195