Python Forum
[Tkinter] Password Reveal Icon
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Password Reveal Icon
#1
Is there any Function in the Entry widget for Password reveal in Tkinter or in any other Python GUI Framework like Kivy, PyQt or WxPython?


[Image: 1-HOz8wr-px-G5-OIr-ZKL-r-Fr-Q.gif]
Reply
#2
Interesting question.

Easy GUI can do half of the job by starring out the users input,
since you have the password in a string I guess you could create
your own reveal button and then put the string in to overwrite the stars
it is going to be hassle though, here is a code snippet to get you started.
I don't know Easygui much but it has a few nice features by the looks of it.

pip install easygui

from easygui import msgbox, passwordbox
 
title = "Password"
pass_word = (passwordbox("Please enter your password",title))
 
msgbox("Your password: %s"%pass_word, title="Password revealed") 
More info:
https://stevepython.wordpress.com/2019/0...nippets-24

https://github.com/robertlugg/easygui
Reply
#3
(Nov-29-2019, 12:19 PM)steve_shambles Wrote: Interesting question.

Easy GUI can do half of the job by starring out the users input,
since you have the password in a string I guess you could create
your own reveal button and then put the string in to overwrite the stars
it is going to be hassle though, here is a code snippet to get you started.
I don't know Easygui much but it has a few nice features by the looks of it.

pip install easygui

from easygui import msgbox, passwordbox
 
title = "Password"
pass_word = (passwordbox("Please enter your password",title))
 
msgbox("Your password: %s"%pass_word, title="Password revealed") 
More info:
https://stevepython.wordpress.com/2019/0...nippets-24

https://github.com/robertlugg/easygui

Thank you so much for your information.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] _tkinter.TclError: bitmap "Icon.gif" not defined djwilson0495 2 4,188 Aug-05-2020, 02:27 PM
Last Post: wuf
  Icon in tkinter menator01 8 1,832 May-03-2020, 02:01 PM
Last Post: wuf
  Python + GTK + AppIndicator3 tray submenu Icon nodefive 5 2,152 Dec-03-2019, 01:23 PM
Last Post: Axel_Erfurt
  [Tkinter] Window Icon Evil_Patrick 6 4,571 Oct-18-2019, 11:26 AM
Last Post: Evil_Patrick
  Button with Image Icon Friend 2 3,300 Jul-25-2019, 09:39 AM
Last Post: Friend
  [PyQt] Hide Dock Icon for QSystemTrayIcon App AeglosGreeenleaf 0 1,508 Jun-20-2019, 07:21 PM
Last Post: AeglosGreeenleaf
  [PyQt] How is this tray icon throbber done? JackDinn 7 2,549 Mar-05-2018, 02:19 PM
Last Post: JackDinn

Forum Jump:

User Panel Messages

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