0% found this document useful (0 votes)
7 views7 pages

Python File I/O and GUI Login Check

This document outlines a lecture on Applied Programming in Python, focusing on File I/O operations and a GUI Login Check application. It includes examples of reading from and writing to files, as well as a brief introduction to coding a login check with a graphical user interface. The next lecture will cover Software Engineering - I, and references for further reading are provided.

Uploaded by

myatkyalsin10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views7 pages

Python File I/O and GUI Login Check

This document outlines a lecture on Applied Programming in Python, focusing on File I/O operations and a GUI Login Check application. It includes examples of reading from and writing to files, as well as a brief introduction to coding a login check with a graphical user interface. The next lecture will cover Software Engineering - I, and references for further reading are provided.

Uploaded by

myatkyalsin10
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

IT

Applied Programming – Python


Part V
Lecture 6

Dr. Nwe Nwe Htay Win


M. C. Sc, University of Computer Studies, Mandalay
Ph.D (IT), China
Harbin Institute of Technology
IT
Outlines
• File I/O
• GUI Login Check Application
IT
File I/O in Python
• # Python program to illustrate file1 = open("[Link]","r")
print("Output of Readlines after appending")
• # Append vs write mode print([Link]())
• file1 = open("[Link]","w") print()
• L = ["This is Delhi \n","This is Paris \n","This is [Link]()
London \n"]
• [Link](L) # Write‐Overwrites
• [Link]() file1 = open("[Link]","w")#write mode
[Link]("Tomorrow \n")
• [Link]()
• # Append-adds at last
• file1 = open("[Link]","a")#append mode file1 = open("[Link]","r")
• [Link]("Today \n") print("Output of Readlines after writing")
print([Link]())
• [Link]()
print()
• [Link]()
IT
Reading Login info file
• with open('[Link]') as f:
• lines = [Link]()
• for x in lines:
• data=[Link](',')
• for v in data:
• print(v)
• print()
IT

• Let’s Code Login Check Example With GUI


IT
Next Lecture
• Software Engineering - I
IT
References
• [Link]

• [Link]
qmainwindow/

• [Link]

You might also like