Python Forum
Help with passing values in npyscreen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with passing values in npyscreen
#3
Ok, I'll fix my return statement, but the problem I have now is when I print the user for testing purposes:
    def create(self):
            self.user = self.add(npyscreen.TitleText, name='Name:')
            self.password = self.add(npyscreen.TitleText, name='Password:')

            user = self.user
            password = self.password
            print(user)
I get this:
Error:
<npyscreen.wgtitlefield.TitleText object at 0x000001EB05A9AF70>
Why did I get this and how can I fix it?
(For that test I typed in "Bob" as the user and got all that, instead of the string "Bob")
Reply


Messages In This Thread
Help with passing values in npyscreen - by Extra - May-14-2022, 02:25 PM
RE: Help with passing values in npyscreen - by Extra - May-18-2022, 11:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Solved]Return values from npyscreen Extra 2 1,293 Oct-09-2022, 07:19 PM
Last Post: Extra
  Passing Values of Dictionaries to Function & Unable to Access Them firebird 3 2,709 Aug-03-2019, 10:25 PM
Last Post: firebird

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020