예제 #1
0
'''

    Use the file Manager from Day24 and 
    write the data you read from the entries inside a text file.

    Add a field for the first name, the last name and the phone number.

    Take the code from the Day28 and add the File Manager.
    
'''

import tkinter as tk
import Day24

# initialize file manager
file_manager = Day24.FileManager('text_data', 'day_30_data.txt')
print(file_manager)

count = 0


# get entries from the text
def get_entries():

    # variable count
    global count
    count += 1

    print("\n-------- ADDING TEXT --------\n")
    file_manager.add_content_in_file("Count : {}\n\n--------\n".format(count))
    # adding random data