Skip to content
Advertisement

Tag: text-files

python – read .txt file line by line

I am trying to read every line of my file which contains a list of usernames and than make a login system with it. I am trying to implement a basic login system which has usernames stored in a .txt file but my code doesn’t work and I don’t know why. I think that the problem is in my loop

Multiple problems generating a text file

I am making my first interface with Pyqt, using “designer” and Python to configure it.The function def clickconector return the form fill and def radio_value return if the job is pending or finished (“pendiente” or “terminado”). clickconector and radio_value* functions are written correctly, but I have problems with def text_file function. Problem #1 : For some reason the generated file

Advertisement