I'm trying to capture text input by user to file,
Somehow, GetLineText(1) does not capture the user input, it is suppose to return text on line 1, which must be the user input password, but it does not return anything, how can i capture input text?
Code:
password = wx.TextCtrl(self.panel_1,wx.ID_ANY,pos=(230,150),size=(200,20),style= wx.TE_PASSWORD) l__password_file = <path\file.txt> l__get_password = password.GetLineText(1) l__write_password = open(l__password_file,'w').write(l__get_password)
Comment