easygui icon indicating copy to clipboard operation
easygui copied to clipboard

multpasswordbox and passwordbox do not work

Open SoulOfCinder opened this issue 9 years ago • 1 comments

import easygui

username1 = easygui.enterbox(msg='Username?')

passwd1 = passwordbox(msg='Enter your password.')

returns the error

Traceback (most recent call last): File "C:/SharedPycharmProjects/mowbat.py", line 11, in fieldValues = multpasswordbox(msg,title, fieldNames) NameError: name 'multpasswordbox' is not defined

SoulOfCinder avatar Sep 20 '16 15:09 SoulOfCinder

This is a problem with your code, not easygui.

Notice you did not prefix passwordbox with easygui, IE easygui.passwordbox(msg="The message")

Therefore you're trying to call passwordbox from your script and not the passwordbox in easygui, resulting in the NameError

spyoungtech avatar Sep 23 '16 14:09 spyoungtech