954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

TextEntry dialog not working with style "TE_PASSWORD"

Hi Guys,

I am trying to make a text box that will accept a password from user.The password should be masked while typing.

def MyFunc2(self,event):
        box2=wx.TextEntryDialog(None,"Enter Password","PASSWORD","Waiting",style=wx.TE_PASSWORD)
        if box2.ShowModal()==wx.ID_OK:  
            global pwd1
            pwd1=box2.GetValue()


The code is a piece of a program . The above code when run , shows the text box , and i can type into it too (the password typed is shown in dots now), BUT , the OK and CANCEL boxes have vanished.So after typing , i cannot finalize value.

I want to know if TextEntryDialog supports this style.
I am not using 'textctrl' as i will have to create a seperate frame , add buttons and add functionality to that again which is again tedious. TextEntryDialogs works perfect , but the only problem is , password is visible while typing.

So anyone, any ideas.?

arindam31
Light Poster
48 posts since Mar 2011
Reputation Points: 2
Solved Threads: 0
 

There are examples on Daniweb that you can use as well as on the web. This is a very simple and common question. I am not using 'textctrl' as i will have to create a seperate frame , add buttons and add functionality to that again which is again tedious.Laziness is not a good quality. Everything, including programming, has a tedious part. In programming you do have to do it yourself, that is why it is called "programming", and not "already programmed". So if you don't enjoy it, find something that you do enjoy.

woooee
Nearly a Posting Maven
2,454 posts since Dec 2006
Reputation Points: 777
Solved Threads: 714
 
There are examples on Daniweb that you can use as well as on the web. This is a very simple and common question. Laziness is not a good quality. Everything, including programming, has a tedious part. In programming you do have to do it yourself, that is why it is called "programming", and not "already programmed". So if you don't enjoy it, find something that you do enjoy.

Right you are.

I already have changed my design. I am using TextCtrl which is hectic but definitely will work for me.It helped many more things and I can customize it as per my requirement. Thanks for the tips and inspiration.

arindam31
Light Poster
48 posts since Mar 2011
Reputation Points: 2
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: