A4_pdf_win module

class A4_pdf_win.pdf_win(choosen_photo)[source]

Bases: object

A class that generates a window to obtain input from the user and generate a PDF file.

choosen_photo

The file path of the chosen photo.

Type:

str

win

The window object.

Type:

Tkinter.Tk

label_1

The label widget for instructions.

Type:

Tkinter.ttk.Label

lname_entry

The entry widget for last name input.

Type:

Tkinter.Entry

fname_entry

The entry widget for first name input.

Type:

Tkinter.Entry

date_entry

The entry widget for date of birth input.

Type:

Tkinter.Entry

recap

The label widget for showing the user input.

Type:

Tkinter.Label

b_gen_pdf

The button widget to generate PDF.

Type:

Tkinter.Button

T

A string that holds the formatted user input.

Type:

str

t

A list of strings that holds the unformatted user input.

Type:

list of str

close_win()[source]

Destroys the window

get_data()[source]

Retrieves the user input and formats it into a string to show to the user

validate()[source]

Generates the pdf, retrieves the information and opens the last window of gratitudes.