Learn practical skills, build real-world projects, and advance your career
Updated 2 years ago
from docx import Document
from docx.enum.style import WD_STYLE_TYPE
from docx.shared import Pt, Inches
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.enum.table import WD_TABLE_ALIGNMENT
import os
import sys
import csv
from tkinter import *
from tkinter import font
from tkinter import messagebox
global main
main = Tk()
main.title('')
def marriageFile():
marr = Toplevel()
marr.title('Marriage File')
b11 = Button(main, text = 'Start Now', state = DISABLED).grid(row = 4, column = 0, stick = W+E+N+S)
clicked.set('Select A File Type:)')
doc = Document()
def filling(ev):
global g_name, g_fname, g_mname, g_nationality, g_religion,g_address,g_dob ,g_age,g_status , g_email,g_no,g_f_fname,b_name,b_fname,b_mname,b_nationality,b_religion,b_address,b_dob,b_age,b_status,b_no,b_f_fname,mar_date,place_mar,witness1,add_witness1,f_witness1 ,witness2,add_witness2 ,f_witness2,pandit_name,pandit_fname,pandit_add
g_name =ent1.get()
g_fname =ent2.get()
g_mname =ent3.get()
g_nationality =ent4.get()
g_religion =ent5.get()
g_address =ent6.get()
g_dob =ent7.get()
g_age =ent8.get()
g_status =ent9.get()
g_email=ent10.get()
g_no =ent11.get()
g_f_fname =ent12.get()
b_name =ent13.get()
b_fname =ent14.get()
b_mname =ent15.get()
b_nationality =ent16.get()
b_religion =ent17.get()
b_address =ent18.get()
b_dob =ent19.get()
b_age =ent20.get()
b_status =ent21.get()
b_no =ent22.get()
b_f_fname =ent23.get()
mar_date =ent24.get()
place_mar =ent25.get()
witness1 =ent26.get()
add_witness1 =ent27.get()
f_witness1 =ent28.get()
witness2 =ent29.get()
add_witness2 =ent30.get()
f_witness2 =ent31.get()
pandit_name =ent32.get()
pandit_fname =ent33.get()
pandit_add =ent34.get()
if g_name == '' or g_fname == '' or g_mname == '' or g_nationality == '' or g_religion == '' or g_address == '' or g_dob == '' or g_age == '' or g_status == '' or g_email == '' or g_no == '' or g_f_fname == '' or b_name == '' or b_fname == '' or b_mname == '' or b_nationality == '' or b_religion == ''or b_address == '' or b_dob == '' or b_age == '' or b_status == '' or b_no == '' or b_f_fname == '' or mar_date == '' or place_mar == '' or witness1 == '' or add_witness1 == '' or f_witness1 =='' or witness2 == '' or add_witness2 == '' or f_witness2 == '' or pandit_name=='' or pandit_fname == '' or pandit_add == '':
messagebox.showwarning('Empty field', 'There is an empty field, please check thoroughly...!')
else:
b02 = Button(marr, text = 'Click to Generate The Marriage File', borderwidth=1, command = fillitup)
b02.bind('<Button-1>')
b02.grid(row = 35, column=1, columnspan=3)
def fillitup():
paragraph = doc.add_paragraph("")
paragraph.add_run('FORM IV').bold = True
paragraph1 = doc.add_paragraph("")
paragraph1.add_run('[See Rule 3(3) (a) and 4 (a)]').bold = True
paragraph.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
paragraph1.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
paragraph_format = paragraph.paragraph_format
paragraph_format.space_after = Pt(0)
paragraph_format.line_spacing =1
paragraph1_format = paragraph1.paragraph_format
paragraph1_format.space_after = Pt(0)
paragraph1_format.line_spacing =1
paragraph.style = doc.styles.add_style('Style0', WD_STYLE_TYPE.PARAGRAPH)
font = paragraph.style.font
font.name= 'Times New Roman'
font.size = Pt(13)
paragraph1.style = doc.styles.add_style('Style1', WD_STYLE_TYPE.PARAGRAPH)
font = paragraph1.style.font
font.name= 'Times New Roman'
font.size = Pt(13)
p1111 = doc.add_paragraph('Application for registration of marriage under Haryana Compulsory Registration of Marriage Act 2008 (6 of 2008) .')
p1111.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p2222 = doc.add_paragraph('To')
p2222_format = p2222.paragraph_format
p2222_format.space_after = Pt(0)
p3333 = doc.add_paragraph('The Registrar of Marriage \nMunicipal Council \nAmbala Sadar')
p3333_format = p3333.paragraph_format
p3333_format.left_indent = Inches(0.5)
p4 = doc.add_paragraph('Please register our marriage, the particulars of which are given below: -')
id_table = doc.add_table(12,4)
id_table.style = 'Table Grid'
hdr_Cells = id_table.rows[0].cells
hdr_Cells[0].text = 'Sr.No'
hdr_Cells[1].text = 'Particulars'
hdr_Cells[2].text = 'Detail of Husband Shri/Smt'
hdr_Cells[3].text = 'Detail of Wife Shri/Smt'
sr_no = id_table.columns[0].cells
sr_no[1].text = '1.'
sr_no[2].text = '2.'
sr_no[3].text = '3.'
sr_no[4].text = '4.'
sr_no[5].text = '5.'
sr_no[6].text = '6.'
sr_no[7].text = '7.'
sr_no[8].text = '8.'
sr_no[9].text = '9.'
sr_no[10].text = '10.'
sr_no[11].text = '11.'
details = id_table.columns[1].cells
details[1].text = 'Full Name'
details[2].text = "Father's Name"
details[3].text = "Mother's Name"
details[4].text = 'Nationality'
details[5].text = 'Religion'
details[6].text = 'Complete Postal Address (With Proof)'
details[7].text = 'Date of Birth'
details[8].text = 'Age as on date of marriage'
details[9].text = 'Status at the time of Marriage'
details[10].text = 'E-Mail'
details[11].text = 'Contact No.'
husband_details = id_table.columns[2].cells
husband_details[1].text = g_name
husband_details[2].text = g_fname
husband_details[3].text = g_mname
husband_details[4].text = g_nationality
husband_details[5].text = g_religion
husband_details[6].text = g_address
husband_details[7].text = g_dob
husband_details[8].text = g_age
husband_details[9].text = g_status
husband_details[10].text = g_email
husband_details[11].text = g_no
wife_details = id_table.columns[3].cells
wife_details[1].text = b_name
wife_details[2].text = b_fname
wife_details[3].text = b_mname
wife_details[4].text = b_nationality
wife_details[5].text = b_religion
wife_details[6].text = b_address
wife_details[7].text = b_dob
wife_details[8].text = b_age
wife_details[9].text = b_status
wife_details[10].text = g_email
wife_details[11].text = b_no
p4444 = doc.add_paragraph('Date Of Marriage:- ')
p4444.add_run(mar_date).bold = True
p4444_format = p4444.paragraph_format
p4444_format.space_after = Pt(0)
p5555 = doc.add_paragraph('Place of Marriage:- ')
p5555.add_run(place_mar).bold = True
p5555_format = p5555.paragraph_format
p5555_format.space_after = Pt(0)
p6666 = doc.add_paragraph('\t Certified that all the information provided in the form is true to the best of my knowledge and belief and nothing has been concealed therein. It is certified that this marriage has not been registered earlier anywhere in India/Abroad. We shall be liable for the action as per the law, if we have violated any provision of any law of land.')
p6666.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p7777 = doc.add_paragraph('Date :-')
p7777.style = doc.styles.add_style('Style5', WD_STYLE_TYPE.PARAGRAPH)
font = p7777.style.font
font.name= 'Times New Roman'
font.size = Pt(13)
p8888 = doc.add_paragraph('\t')
p8888.add_run('Signature of Husband').bold = True
p8888.add_run('\t\t\t\t ')
p8888.add_run('Signatuer of Wife').bold = True
witness_table = doc.add_table(3,2)
head_cell = witness_table.rows[0].cells
head_cell[0].text = 'Witness 1'
head_cell[1].text = 'Witness 2'
wit1_name = witness_table.columns[0].cells
wit1_name[1].text = witness1+' S/O '+f_witness1 +' '+ add_witness1
wit2_name = witness_table.columns[1].cells
wit2_name[1].text = witness2+' S/O '+f_witness2+' '+ add_witness2
signs = witness_table.rows[2].cells
signs[0].text = 'Signature...............'
signs[1].text = 'Signature...............'
p4444.style = doc.styles.add_style('Style2', WD_STYLE_TYPE.PARAGRAPH)
font = p4444.style.font
font.name= 'Times New Roman'
font.size = Pt(13)
p5555.style = doc.styles.add_style('Style3', WD_STYLE_TYPE.PARAGRAPH)
font = p5555.style.font
font.name= 'Times New Roman'
font.size = Pt(13)
p6666.style = doc.styles.add_style('Style4', WD_STYLE_TYPE.PARAGRAPH)
font = p6666.style.font
font.name= 'Times New Roman'
font.size = Pt(13)
doc.add_page_break()
doc.add_heading('',1)
doc.add_heading('',1)
p9 = doc.add_paragraph('FORM IV\n[See Rule 3(3) (d)]')
p9.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p10 = doc.add_paragraph('')
p10.add_run('OFFICE OF THE MUNICIPAL COUNCIL, AMBALA SADAR\n MARRIAGE REGISTRATION CERTIFICATE').bold = True
p10.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
doc.add_heading('',1)
doc.add_heading('',1)
doc.add_heading('',1)
doc.add_heading('',1)
p11 = doc.add_paragraph('Certified that ')
p11.add_run(g_name)
p11.add_run('S/O ')
p11.add_run(g_fname)
p11.add_run('R/O ')
p11.add_run(g_address)
p11.add_run(' has been married to ')
p11.add_run(b_name)
p11.add_run(' D/O ')
p11.add_run(b_fname)
p11.add_run(' R/O ')
p11.add_run(b_address)
p11.add_run(' on ')
p11.add_run(mar_date)
p11.add_run(' at ')
p11.add_run(place_mar)
p11.add_run(' and the said marriage has been registered on ................. under registration No ................. issued under my hand and sealed on ..................')
p11.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('',1)
doc.add_heading('',1)
p12 = doc.add_paragraph('\t\t\t\t\t\t\t\t\tMarriage Registrar \n\t\t\t\t\t\t\t\t\tMunicipal Council \n\t\t\t\t\t\t\t\t\tAmbala Sadar')
doc.add_page_break()
doc.add_heading('',1)
doc.add_heading('',1)
p13 = doc.add_paragraph('')
p13.add_run('GROOM AFFIDAVIT').bold = True
p13.style = doc.styles.add_style('Style111', WD_STYLE_TYPE.PARAGRAPH)
font1 = p13.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p13.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p13_format = p13.paragraph_format
p13_format.space_after = Pt(24)
p13_format.line_spacing = 1.5
p14 = doc.add_paragraph('I, ')
p14.add_run(g_name)
p14.add_run(' S/O Sh. ')
p14.add_run(g_fname)
p14.add_run(' R/O ')
p14.add_run(g_address)
p14.add_run(' , do hereby solemnly affirm as under:- ')
p14.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15 = doc.add_paragraph('1. That the Marriage of Deponent was solemnized on ')
p15.add_run(mar_date)
p15.add_run(' at ')
p15.add_run(place_mar)
p15.add_run(' as per Hindu Customs, with ')
p15.add_run(b_name)
p15.add_run(' D/O Sh. ')
p15.add_run(b_fname)
p15.add_run(' R/O ')
p15.add_run(b_address)
p15.add_run(' in the presence of Parents, Friends and Relatives of both the parties and since we are living as Husband and Wife.')
p15.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15_format = p15.paragraph_format
p15_format.line_spacing = 1.5
p16 = doc.add_paragraph('2. That date of birth of deponent i.e ')
p16.add_run(g_dob)
p16.add_run(' is True and correct to the best of my knowledge.')
p16.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p16_format = p16.paragraph_format
p16_format.line_spacing = 1.5
p17 = doc.add_paragraph('3. That the deponent if R/O above address.')
p17_format = p17.paragraph_format
p17_format.line_spacing = 1.5
p18 = doc.add_paragraph("4. That my mother's name is Smt. "+g_mname)
p18_format = p18.paragraph_format
p18_format.line_spacing = 1.5
p19 = doc.add_paragraph('5. That the nationality of the deponent is India by Birth.')
p19_format = p19.paragraph_format
p19_format.line_spacing = 1.5
p20 = doc.add_paragraph('6. That this marriage has not been registered anywhere in Haryana or anywhere in India.')
p20_format = p20.paragraph_format
p20_format.line_spacing = 1.5
p21 = doc.add_paragraph('7. That the deponent was unmarried before the above marriage.')
p21_format = p21.paragraph_format
p21_format.line_spacing = 1.5
doc.add_heading('', 1)
p22 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p23 = doc.add_paragraph('\tVerified at Ambala Cantt on ............... that the contents of my above affidavit is true to the best of my knowledge and belief and nothing has been concealed there in.')
p23.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p24 = doc.add_paragraph('DEPONENT')
p24.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p13 = doc.add_paragraph('')
p13.add_run('BRIDE AFFIDAVIT').bold = True
p13.style = doc.styles.add_style('Style112', WD_STYLE_TYPE.PARAGRAPH)
font1 = p13.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p13.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p13_format = p13.paragraph_format
p13_format.space_after = Pt(24)
p13_format.line_spacing = 1.5
p14 = doc.add_paragraph('I, ')
p14.add_run(b_name)
p14.add_run(' D/O Sh. ')
p14.add_run(b_fname)
p14.add_run(' R/O ')
p14.add_run(b_address)
p14.add_run(' , do hereby solemnly affirm as under:- ')
p14.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p25 = doc.add_paragraph('1. That the Marriage of Deponent was solemnized on ')
p25.add_run(mar_date)
p25.add_run(' at ')
p25.add_run(place_mar)
p25.add_run(' as per Hindu Customs, with ')
p25.add_run(g_name)
p25.add_run(' S/O Sh. ')
p25.add_run(g_fname)
p25.add_run(' R/O ')
p25.add_run(g_address)
p25.add_run(' in the presence of Parents, Friends and Relatives of both the parties and since we are living as Husband and Wife.')
p25.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p25_format = p15.paragraph_format
p25_format.line_spacing = 1.5
p16 = doc.add_paragraph('2. That date of birth of deponent i.e ')
p16.add_run(b_dob)
p16.add_run(' is True and correct to the best of my knowledge.')
p16.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p16_format = p16.paragraph_format
p16_format.line_spacing = 1.5
p17 = doc.add_paragraph('3. That the deponent if R/O above address.')
p17_format = p17.paragraph_format
p17_format.line_spacing = 1.5
p18 = doc.add_paragraph("4. That my mother's name is Smt. "+b_mname)
p18_format = p18.paragraph_format
p18_format.line_spacing = 1.5
p19 = doc.add_paragraph('5. That the nationality of the deponent is India by Birth.')
p19_format = p19.paragraph_format
p19_format.line_spacing = 1.5
p20 = doc.add_paragraph('6. That this marriage has not been registered anywhere in Haryana or anywhere in India.')
p20_format = p20.paragraph_format
p20_format.line_spacing = 1.5
p21 = doc.add_paragraph('7. That the deponent was unmarried before the above marriage.')
p21_format = p21.paragraph_format
p21_format.line_spacing = 1.5
doc.add_heading('', 1)
p22 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p23 = doc.add_paragraph('\tVerified at Ambala Cantt on ............... that the contents of my above affidavit is true to the best of my knowledge and belief and nothing has been concealed there in.')
p23.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p24 = doc.add_paragraph('DEPONENT')
p24.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p13 = doc.add_paragraph('')
p13.add_run('AFFIDAVIT OF GROOM FATHER').bold = True
p13.style = doc.styles.add_style('Style113', WD_STYLE_TYPE.PARAGRAPH)
font1 = p13.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p13.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p13_format = p13.paragraph_format
p13_format.space_after = Pt(24)
p13_format.line_spacing = 1.5
p14 = doc.add_paragraph('I, ')
p14.add_run(g_fname)
p14.add_run(' S/O Sh. ')
p14.add_run(g_f_fname)
p14.add_run(' R/O ')
p14.add_run(g_address)
p14.add_run(' , do hereby solemnly affirm as under:- ')
p14.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p18 = doc.add_paragraph("1. That ")
p18.add_run(g_name)
p18.add_run(' is my real son.')
p18_format = p18.paragraph_format
p18_format.line_spacing = 1.5
p16 = doc.add_paragraph('2. That date of birth of my son is ')
p16.add_run(g_dob)
p16.add_run(' which is True and correct to the best of my knowledge.')
p16.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p16_format = p16.paragraph_format
p16_format.line_spacing = 1.5
p15 = doc.add_paragraph('3. That the Marriage of Deponent was solemnized on ')
p15.add_run(mar_date)
p15.add_run(' at ')
p15.add_run(place_mar)
p15.add_run(' as per Hindu Customs, with ')
p15.add_run(b_name)
p15.add_run(' D/O Sh. ')
p15.add_run(b_fname)
p15.add_run(' R/O ')
p15.add_run(b_address)
p15.add_run(' in the presence of Parents, Friends and Relatives of both the parties and since we are living as Husband and Wife.')
p15.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15_format = p15.paragraph_format
p15_format.line_spacing = 1.5
p19 = doc.add_paragraph('4. That the deponent is R/O the above noted Address.')
p19_format = p19.paragraph_format
p19_format.line_spacing = 1.5
p21 = doc.add_paragraph('5. That my son was unmarried before the above marriage.')
p21_format = p21.paragraph_format
p21_format.line_spacing = 1.5
doc.add_heading('', 1)
p22 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p23 = doc.add_paragraph('\tVerified at Ambala Cantt on ............... that the contents of my above affidavit is true to the best of my knowledge and belief and nothing has been concealed there in.')
p23.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p24 = doc.add_paragraph('DEPONENT')
p24.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p13 = doc.add_paragraph('')
p13.add_run('AFFIDAVIT OF BRIDE FATHER').bold = True
p13.style = doc.styles.add_style('Style114', WD_STYLE_TYPE.PARAGRAPH)
font1 = p13.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p13.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p13_format = p13.paragraph_format
p13_format.space_after = Pt(24)
p13_format.line_spacing = 1.5
p14 = doc.add_paragraph('I, ')
p14.add_run(b_fname)
p14.add_run(' S/O Sh. ')
p14.add_run(b_f_fname)
p14.add_run(' R/O ')
p14.add_run(b_address)
p14.add_run(' , do hereby solemnly affirm as under:- ')
p14.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p18 = doc.add_paragraph("1. That ")
p18.add_run(b_name)
p18.add_run(' is my real daughter.')
p18_format = p18.paragraph_format
p18_format.line_spacing = 1.5
p16 = doc.add_paragraph('2. That date of birth of my daughter is ')
p16.add_run(b_dob)
p16.add_run(' which is True and correct to the best of my knowledge.')
p16.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p16_format = p16.paragraph_format
p16_format.line_spacing = 1.5
p15 = doc.add_paragraph('3. That the Marriage of Deponent was solemnized on ')
p15.add_run(mar_date)
p15.add_run(' at ')
p15.add_run(place_mar)
p15.add_run(' as per Hindu Customs, with ')
p15.add_run(g_name)
p15.add_run(' S/O Sh. ')
p15.add_run(g_fname)
p15.add_run(' R/O ')
p15.add_run(g_address)
p15.add_run(' in the presence of Parents, Friends and Relatives of both the parties and since we are living as Husband and Wife.')
p15.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15_format = p15.paragraph_format
p15_format.line_spacing = 1.5
p19 = doc.add_paragraph('4. That the deponent is R/O the above noted Address.')
p19_format = p19.paragraph_format
p19_format.line_spacing = 1.5
p21 = doc.add_paragraph('5. That my son was unmarried before the above marriage.')
p21_format = p21.paragraph_format
p21_format.line_spacing = 1.5
doc.add_heading('', 1)
p22 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p23 = doc.add_paragraph('\tVerified at Ambala Cantt on ............... that the contents of my above affidavit is true to the best of my knowledge and belief and nothing has been concealed there in.')
p23.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p24 = doc.add_paragraph('DEPONENT')
p24.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p13 = doc.add_paragraph('')
p13.add_run('AFFIDAVIT OF WITNESS').bold = True
p13.style = doc.styles.add_style('Style115', WD_STYLE_TYPE.PARAGRAPH)
font1 = p13.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p13.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p13_format = p13.paragraph_format
p13_format.space_after = Pt(24)
p13_format.line_spacing = 1.5
p14 = doc.add_paragraph('I, ')
p14.add_run(witness1)
p14.add_run(' S/O Sh. ')
p14.add_run(f_witness1)
p14.add_run(' R/O ')
p14.add_run(add_witness1)
p14.add_run(' , do hereby solemnly affirm as under:- ')
p14.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15 = doc.add_paragraph('1. That the Marriage of ')
p15.add_run(b_name)
p15.add_run(' was solemnized on ')
p15.add_run(mar_date)
p15.add_run(' at ')
p15.add_run(place_mar)
p15.add_run(' as per Hindu Customs, with ')
p15.add_run(g_name)
p15.add_run(' S/O Sh. ')
p15.add_run(g_fname)
p15.add_run(' R/O ')
p15.add_run(g_address)
p15.add_run(' in the presence of Parents, Friends and Relatives of both the parties and since we are living as Husband and Wife.')
p15.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15_format = p15.paragraph_format
p15_format.line_spacing = 1.5
p19 = doc.add_paragraph('2. That the deponent is R/O the above noted Address.')
p19_format = p19.paragraph_format
p19_format.line_spacing = 1.5
doc.add_heading('', 1)
p22 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p23 = doc.add_paragraph('\tVerified at Ambala Cantt on ............... that the contents of my above affidavit is true to the best of my knowledge and belief and nothing has been concealed there in.')
p23.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p24 = doc.add_paragraph('DEPONENT')
p24.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p13 = doc.add_paragraph('')
p13.add_run('AFFIDAVIT OF WITNESS').bold = True
p13.style = doc.styles.add_style('Style116', WD_STYLE_TYPE.PARAGRAPH)
font1 = p13.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p13.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p13_format = p13.paragraph_format
p13_format.space_after = Pt(24)
p13_format.line_spacing = 1.5
p14 = doc.add_paragraph('I, ')
p14.add_run(witness2)
p14.add_run(' S/O Sh. ')
p14.add_run(f_witness2)
p14.add_run(' R/O ')
p14.add_run(add_witness2)
p14.add_run(' , do hereby solemnly affirm as under:- ')
p14.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15 = doc.add_paragraph('1. That the Marriage of ')
p15.add_run(g_name)
p15.add_run(' was solemnized on ')
p15.add_run(mar_date)
p15.add_run(' at ')
p15.add_run(place_mar)
p15.add_run(' as per Hindu Customs, with ')
p15.add_run(b_name)
p15.add_run(' D/O Sh. ')
p15.add_run(b_fname)
p15.add_run(' R/O ')
p15.add_run(b_address)
p15.add_run(' in the presence of Parents, Friends and Relatives of both the parties and since we are living as Husband and Wife.')
p15.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p15_format = p15.paragraph_format
p15_format.line_spacing = 1.5
p19 = doc.add_paragraph('2. That the deponent is R/O the above noted Address.')
p19_format = p19.paragraph_format
p19_format.line_spacing = 1.5
doc.add_heading('', 1)
p22 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p23 = doc.add_paragraph('\tVerified at Ambala Cantt on ............... that the contents of my above affidavit is true to the best of my knowledge and belief and nothing has been concealed there in.')
p23.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p24 = doc.add_paragraph('DEPONENT')
p24.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p26 = doc.add_paragraph('')
p26.add_run('STATEMENT OF GROOM:-').bold = True
p26.style = doc.styles.add_style('Style26', WD_STYLE_TYPE.PARAGRAPH)
font1 = p26.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
doc.add_heading('', 1)
p27 = doc.add_paragraph('Statement of Bridegroom ')
p27.add_run(g_name)
p27.add_run(' S/O ')
p27.add_run(g_fname)
p27.add_run(' R/O ')
p27.add_run(g_address)
p27.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p28 = doc.add_paragraph('')
p28.add_run('On S.A').bold = True
p28_format = p28.paragraph_format
p28_format.space_after = Pt(0)
p28_format.line_spacing = 1
p29 = doc.add_paragraph('\tIt is stated that my Marriage was solemnized on ')
p29.add_run(mar_date)
p29.add_run(' at ')
p29.add_run(place_mar).bold = True
p29.add_run(' as per Hindu customs, with ')
p29.add_run(b_name)
p29.add_run(' D/O ')
p29.add_run(b_fname)
p29.add_run(' R/O ')
p29.add_run(b_address)
p29.add_run('. My date of birth is ')
p29.add_run(g_dob)
p29.add_run(' which is true and correct to the best of my knowledge.')
p29.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p30 = doc.add_paragraph('\tAt the time of my Marriage I was a Major and unmarried and have completed the age of ')
p30.add_run(g_age)
p30.add_run(' years. This marriage was solemnized with consent and good wishes of my parents.')
p30.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p31 = doc.add_paragraph('')
p31.add_run('RO & AC').bold = True
p32 = doc.add_paragraph('Marriage Registerar \n Municipal Council \n Ambala Sadar')
p32.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p26 = doc.add_paragraph('')
p26.add_run('STATEMENT OF BRIDE:-').bold = True
p26.style = doc.styles.add_style('Style27', WD_STYLE_TYPE.PARAGRAPH)
font1 = p26.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
doc.add_heading('', 1)
p27 = doc.add_paragraph('Statement of Bride ')
p27.add_run(b_name)
p27.add_run(' D/O ')
p27.add_run(b_fname )
p27.add_run(' R/O ')
p27.add_run(b_address)
p27.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p28 = doc.add_paragraph('')
p28.add_run('On S.A').bold = True
p28_format = p28.paragraph_format
p28_format.space_after = Pt(0)
p28_format.line_spacing = 1
p29 = doc.add_paragraph('\tIt is stated that my Marriage was solemnized on ')
p29.add_run(mar_date)
p29.add_run(' at ')
p29.add_run(place_mar).bold = True
p29.add_run(' as per Hindu customs, with ')
p29.add_run(g_name)
p29.add_run(' S/O ')
p29.add_run(g_fname)
p29.add_run(' R/O ')
p29.add_run(g_address)
p29.add_run('. My date of birth is ')
p29.add_run(b_dob)
p29.add_run(' which is true and correct to the best of my knowledge.')
p29.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p30 = doc.add_paragraph('\tAt the time of my Marriage I was a Major and unmarried and have completed the age of ')
p30.add_run(b_age)
p30.add_run(' years. This marriage was solemnized with consent and good wishes of my parents.')
p30.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p31 = doc.add_paragraph('')
p31.add_run('RO & AC').bold = True
p32 = doc.add_paragraph('Marriage Registerar \n Municipal Council \n Ambala Sadar')
p32.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p26 = doc.add_paragraph('')
p26.add_run('STATEMENT OF GROOM FATHER:-').bold = True
p26.style = doc.styles.add_style('Style28', WD_STYLE_TYPE.PARAGRAPH)
font1 = p26.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
doc.add_heading('', 1)
p27 = doc.add_paragraph('Statement of Sh. ')
p27.add_run(g_fname)
p27.add_run(' S/O ')
p27.add_run(g_f_fname)
p27.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p28 = doc.add_paragraph('')
p28.add_run('On S.A').bold = True
p28_format = p28.paragraph_format
p28_format.space_after = Pt(0)
p28_format.line_spacing = 1
p29 = doc.add_paragraph('\tIt is stated that the Marriage of my son ')
p29.add_run(g_name)
p29.add_run(' was solemnized on ')
p29.add_run(mar_date)
p29.add_run(' at ')
p29.add_run(place_mar).bold = True
p29.add_run(' as per Hindu customs, with ')
p29.add_run(b_name)
p29.add_run(' D/O ')
p29.add_run(b_fname)
p29.add_run(' R/O ')
p29.add_run(b_address)
p29.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p31 = doc.add_paragraph('')
p31.add_run('RO & AC').bold = True
p32 = doc.add_paragraph('Marriage Registerar \n Municipal Council \n Ambala Sadar')
p32.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p26 = doc.add_paragraph('')
p26.add_run('STATEMENT OF BRIDE FATHER:-').bold = True
p26.style = doc.styles.add_style('Style29', WD_STYLE_TYPE.PARAGRAPH)
font1 = p26.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
doc.add_heading('', 1)
p27 = doc.add_paragraph('Statement of Sh. ')
p27.add_run(b_fname)
p27.add_run(' S/O ')
p27.add_run(b_f_fname)
p27.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p28 = doc.add_paragraph('')
p28.add_run('On S.A').bold = True
p28_format = p28.paragraph_format
p28_format.space_after = Pt(0)
p28_format.line_spacing = 1
p29 = doc.add_paragraph('\tIt is stated that the Marriage of my daughter ')
p29.add_run(b_name)
p29.add_run(' was solemnized on ')
p29.add_run(mar_date)
p29.add_run(' at ')
p29.add_run(place_mar).bold = True
p29.add_run(' as per Hindu customs, with ')
p29.add_run(g_name)
p29.add_run(' S/O ')
p29.add_run(g_fname)
p29.add_run(' R/O ')
p29.add_run(g_address)
p29.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p31 = doc.add_paragraph('')
p31.add_run('RO & AC').bold = True
p32 = doc.add_paragraph('Marriage Registerar \n Municipal Council \n Ambala Sadar')
p32.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p26 = doc.add_paragraph('')
p26.add_run('STATEMENT OF WITNESS:-').bold = True
p26.style = doc.styles.add_style('Style30', WD_STYLE_TYPE.PARAGRAPH)
font1 = p26.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
doc.add_heading('', 1)
p27 = doc.add_paragraph('Statement of Sh. ')
p27.add_run(witness1)
p27.add_run(' S/O ')
p27.add_run(f_witness1)
p27.add_run(' R/O ')
p27.add_run(add_witness1)
p27.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p28 = doc.add_paragraph('')
p28.add_run('On S.A').bold = True
p28_format = p28.paragraph_format
p28_format.space_after = Pt(0)
p28_format.line_spacing = 1
p29 = doc.add_paragraph('\tIt is stated that I personally know both the Bridegroom ')
p29.add_run(g_name)
p29.add_run(' and Bride ')
p29.add_run(b_name)
p29.add_run(' and their marriage was solemnized on ')
p29.add_run(mar_date)
p29.add_run(' at ')
p29.add_run(place_mar).bold = True
p29.add_run(' as per Hindu customs, in my prescence and in the prescence of relatives, friends and parents of both the parties.')
p29.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p31 = doc.add_paragraph('')
p31.add_run('RO & AC').bold = True
p32 = doc.add_paragraph('Marriage Registerar \n Municipal Council \n Ambala Sadar')
p32.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p26 = doc.add_paragraph('')
p26.add_run('STATEMENT OF WITNESS:-').bold = True
p26.style = doc.styles.add_style('Style31', WD_STYLE_TYPE.PARAGRAPH)
font1 = p26.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
doc.add_heading('', 1)
p27 = doc.add_paragraph('Statement of Sh. ')
p27.add_run(witness2)
p27.add_run(' S/O ')
p27.add_run(f_witness2)
p27.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p28 = doc.add_paragraph('')
p28.add_run('On S.A').bold = True
p28_format = p28.paragraph_format
p28_format.space_after = Pt(0)
p28_format.line_spacing = 1
p29 = doc.add_paragraph('\tIt is stated that I personally know both the Bridegroom ')
p29.add_run(g_name)
p29.add_run(' and Bride ')
p29.add_run(b_name)
p29.add_run(' and their marriage was solemnized on ')
p29.add_run(mar_date)
p29.add_run(' at ')
p29.add_run(place_mar).bold = True
p29.add_run(' as per Hindu customs, in my prescence and in the prescence of relatives, friends and parents of both the parties.')
p29.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
doc.add_heading('', 1)
p31 = doc.add_paragraph('')
p31.add_run('RO & AC').bold = True
p32 = doc.add_paragraph('Marriage Registerar \n Municipal Council \n Ambala Sadar')
p32.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p33 = doc.add_paragraph('')
p33.add_run('AFFIDAVIT OF PANDIT JI / PATHI JI').bold = True
p33.style = doc.styles.add_style('Style33', WD_STYLE_TYPE.PARAGRAPH)
font1 = p33.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p33.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p34 = doc.add_paragraph('I, ')
p34.add_run(pandit_name)
p34.add_run(' S/O Sh. ')
p34.add_run(pandit_fname)
p34.add_run(' R/O ')
p34.add_run(pandit_add)
p34.add_run(' do hereby solemnly affirms and declares as under:- ')
p34.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p35 = doc.add_paragraph('That the marraige of Mr. ')
p35.add_run(g_name)
p35.add_run(' S/O Sh. ')
p35.add_run(g_fname)
p35.add_run(' was solemnized on ')
p35.add_run(mar_date)
p35.add_run(', at')
p35.add_run(place_mar).bold = True
p35.add_run(', with Miss. ')
p35.add_run(b_name)
p35.add_run(' D/O Sh. ')
p35.add_run(b_fname)
p35.add_run(' R/O ')
p35.add_run(b_address)
p35.add_run(' in the presence of relatives, friends and parents of both the parties as per Hindu Customs.')
p35.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p36 = doc.add_paragraph('\t1.\tThat I performed the Phere of the above said couple.')
p37 = doc.add_paragraph('\t2.\tThat ther are living as husband and wife after this marriage.')
doc.add_heading('', 1)
p38 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p39 = doc.add_paragraph('I, the above named deponent do hereby verify that the contents of this affidavit are true and correct to the best of my knowledge and nothing has been kept concealed therein.')
p39.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p40 = doc.add_paragraph('DEPONENT')
p40.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
doc.add_page_break()
p33 = doc.add_paragraph('')
p33.add_run('AFFIDAVIT').bold = True
p33.style = doc.styles.add_style('Style35', WD_STYLE_TYPE.PARAGRAPH)
font1 = p33.style.font
font1.name= 'Times New Roman'
font1.size = Pt(18)
font1.underline = True
p33.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
p34 = doc.add_paragraph('We, ')
p34.add_run(g_name).bold = True
p34.add_run(' S/O Sh. ')
p34.add_run(g_fname).bold = True
p34.add_run(' R/O ')
p34.add_run(g_address).bold = True
p34.add_run(' & ')
p34.add_run(b_name).bold = True
p34.add_run(' D/O Sh. ')
p34.add_run(b_fname).bold = True
p34.add_run(' R/O ')
p34.add_run(b_address).bold = True
p34.add_run(' do hereby solemnly affirm and declare as under:- ')
p34.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p41 = doc.add_paragraph('That the marriage of the deponent with ', style = 'List Number')
p41.add_run(b_name)
p41.add_run(' D/O ')
p41.add_run(b_fname)
p41.add_run(' & ')
p41.add_run(g_name)
p41.add_run(' S/O ')
p41.add_run(g_fname)
p41.add_run(' has been solemnized on ')
p41.add_run(mar_date)
p41.add_run(' at ')
p41.add_run(place_mar).bold = True
p41.add_run(' according to Hindu rites and ceremonies, without giving or taking any dowry.')
p41.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p42 = doc.add_paragraph('That we are applying for Marriage Certificate and we have checked all the documents carefully. In future there will be no need to correct any thing in ou Marriage Certificate.', style = 'List Number')
p42.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p43 = doc.add_paragraph('\tPlace: Ambala Cantt')
p44 = doc.add_paragraph('\tDated:- ____________')
doc.add_heading('',1)
p38 = doc.add_paragraph('VERIFICATION\t\t\t\t\t\t\t\t\t DEPONENT')
p39 = doc.add_paragraph('Verified that the content of paras of the above affidavit are true and correct to the best of my knowledge. No part of it is false and nothing has been concealed therin.')
p39.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p40 = doc.add_paragraph('DEPONENT')
saven = g_name+'_'+g_email
doc.save(saven+'.docx')
os.system('start '+saven+'.docx')
marr.destroy()
lab1 = Label(marr, text = '''Enter the name of Groom: \n Enter Groom's Father Name: \n Enter Groom's Mother Name: \nEnter the nationality of Groom: \nEnter the religion of Groom: \nEnter the Adress of the groom: \nEnter the DOB of groom: \nEnter the current age of Groom: \nStatus of Groom at the time of marriage: \nEnter a Email-ID: \nEnter the Mobile Number(Groom): \nEnter the name of Great Grandfather of groom: \nEnter the name of Bride: \nEnter Bride's Father Name: \nEnter Bride's Mother Name: \nEnter the nationality of Bride: \nEnter the religion of Bride: \nEnter the Adress of the Bride: \nEnter the DOB of Bride: \nEnter the current age of Bride: \nStatus of Bride at the time of marriage: \nEnter the Mobile Number(Bride): \nEnter the name of Great Grandfather of Bride: \nEnter the Date Of Marriage: \nEnter the place of Marriage: \nEnter the name of witness1: \nEnter the address of witness1: \nEnter the father name of Witness1: \nEnter the name of witness2: \nEnter the address of witness2: \nEnter the father name of Witness2: \nEnter the name of pandit: \nEnter the Pandit's Father name: \nEnter the address of pandit: ''', relief = 'sunken', justify = 'right', font = ('Times New Roman',16))
lab1.grid(row = 0, column = 0, rowspan=35)
ent1 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent1.grid(row = 1, column = 1)
ent2 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent2.grid(row = 2, column = 1)
ent3 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent3.grid(row = 3, column = 1)
ent4 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent4.grid(row = 4, column = 1)
ent5 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent5.grid(row = 5, column = 1)
ent6 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent6.grid(row = 6, column = 1)
ent7 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent7.grid(row = 7, column = 1)
ent8 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent8.grid(row = 8, column = 1)
ent9 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent9.grid(row = 9, column = 1)
ent10 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent10.grid(row = 10, column = 1)
ent11 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent11.grid(row = 11, column = 1)
ent12 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent12.grid(row = 12, column = 1)
ent13 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent13.grid(row = 13, column = 1)
ent14 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent14.grid(row = 14, column = 1)
ent15 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent15.grid(row = 15, column = 1)
ent16 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent16.grid(row = 16, column = 1)
ent17 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent17.grid(row = 17, column = 1)
ent18 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent18.grid(row = 18, column = 1)
ent19 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent19.grid(row = 19, column = 1)
ent20 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent20.grid(row = 20, column = 1)
ent21 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent21.grid(row = 21, column = 1)
ent22 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent22.grid(row =22 , column = 1)
ent23 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent23.grid(row =23, column = 1)
ent24 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent24.grid(row =24, column = 1)
ent25 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent25.grid(row = 25, column = 1)
ent26 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent26.grid(row = 26, column = 1)
ent27 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent27.grid(row = 27, column = 1)
ent28 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent28.grid(row = 28, column = 1)
ent29 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent29.grid(row = 29, column = 1)
ent30 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent30.grid(row = 30, column = 1)
ent31 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent31.grid(row = 31, column = 1)
ent32 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent32.grid(row = 32, column = 1)
ent33 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent33.grid(row = 33, column = 1)
ent34 = Entry(marr, width = 50, font = ('Times New Roman', 13))
ent34.grid(row = 34, column = 1)
b01 = Button(marr, text = 'Click To Enter The Data', borderwidth=1)
b01.bind('<Button-1>', filling)
b01.grid(row = 35, column = 0)
b02 = Button(marr, text = 'Click to Generate The Marriage File', state = DISABLED, borderwidth=1)
b02.bind('<Button-1>')
b02.grid(row = 35, column=1, columnspan=3)
marr.mainloop()
def boyAff():
root = Toplevel()
root.title('Affidavit Maker')
b11 = Button(main, text = 'Start Now', state = DISABLED).grid(row = 4, column = 0, stick = W+E+N+S)
clicked.set('Select A File Type:)')
doc = Document()
def fillfields(event):
global a_n, a_fn, a_ad, c_n, c_d, c_m, h_n, auth, reg, no, ad_no, mob_no
a_n = e1.get()
a_fn = e2.get()
a_ad =e3.get()
c_n =e4.get()
c_d =e5.get()
c_m =e6.get()
h_n =e7.get()
auth = e8.get()
reg =e9.get()
no = e10.get()
ad_no = e11.get()
mob_no = e12.get()
if e1.get() == '' or e2.get() == '' or e3.get() == '' or e4.get() == '' or e5.get() == '' or e6.get() == '' or e7.get() == '' or e8.get() == '' or e9.get() == '' or e10.get() == '' or e11.get() == '' or e12.get() == '':
messagebox.showwarning('Empty Field', 'There is an empty field, please check thouroughly..!' )
else:
b2 = Button(root, text = 'Click to Generate The Affidavit', borderwidth=1, command= generate)
b2.bind('<Button-1>')
b2.grid(row = 13, column=1, columnspan=3)
def generate():
with open('REG_No.csv', 'a', newline='') as f:
write = csv.writer(f)
write.writerow([a_n, a_ad, ad_no, mob_no ])
doc.add_heading('', 1)
h1 = doc.add_paragraph('')
h1.add_run('AFFIDAVIT').bold = True
h1.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
h1.style = doc.styles.add_style('s1', WD_STYLE_TYPE.PARAGRAPH)
f = h1.style.font
f.name = 'Times New Roman'
f.size = Pt(16)
f.underline = True
p = doc.add_paragraph('I, ')
p.add_run(a_n).bold = True
p.add_run(' S/o / D/o Sh. ').bold = True
p.add_run(a_fn).bold = True
p.add_run(' R/o ').bold = True
p.add_run(a_ad).bold = True
p.add_run(' do hereby solemnly affirm and declare as under:- ')
p.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p.style = doc.styles.add_style('s2', WD_STYLE_TYPE.PARAGRAPH)
f1 = p.style.font
f1.name = 'Times New Roman'
f1.size = Pt(14)
p1 = doc.add_paragraph('1. That I am residing at the above mentioned address.')
p1.style = doc.styles.add_style('s3', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
p1 = doc.add_paragraph('2. That a Male/Female child namely ')
p1.add_run(c_n).bold = True
p1.add_run(" was born from my/my wife's belly Smt. ")
p1.add_run(c_m).bold = True
p1.add_run(' on ')
p1.add_run(c_d).bold = True
p1.add_run(' at ')
p1.add_run(h_n).bold = True
p1.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p1.style = doc.styles.add_style('s4', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
p1 = doc.add_paragraph('3. That the event of birth of my child was registered in the records of ')
p1.add_run(auth).bold = True
p1.add_run(' vide Registration No. ').bold = True
p1.add_run(reg)
p1.add_run(' but the name of my child was not mentioned in the records at the time.')
p1.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p1.style = doc.styles.add_style('s5', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
p1 = doc.add_paragraph('4. That the name of my child is ')
p1.add_run(c_n).bold = True
p1.add_run(' and I want to enter his/her name in the column of name of child in the record of ')
p1.add_run(auth).bold = True
p1.add_run('.')
p1.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
p1.style = doc.styles.add_style('s6', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
p1 = doc.add_paragraph('5. That I will not change the name of my child in the future ')
p1.style = doc.styles.add_style('s7', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
p1 = doc.add_paragraph('6. That my above statement is true and correct.')
p1.style = doc.styles.add_style('s8', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
p1 = doc.add_paragraph('7. That ')
p1.add_run(c_n).bold = True
p1.add_run(' is my ')
p1.add_run(no).bold = True
p1.add_run(' baby.')
p1.style = doc.styles.add_style('s9', WD_STYLE_TYPE.PARAGRAPH)
f2 = p1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(13)
p1_format = p1.paragraph_format
p1_format.left_indent = Inches(0.5)
v1 = doc.add_paragraph()
v1.add_run('VERIFICATION: - \t\t\t\t\t\t DEPONENT').bold = True
v1.style = doc.styles.add_style('v1', WD_STYLE_TYPE.PARAGRAPH)
f2 = v1.style.font
f2.name = 'Times New Roman'
f2.size = Pt(14)
v2 = doc.add_paragraph('\tVerified that the contents of the above affidavit are true and correct to the best of my knowledge and belief and nothing has been concealed therein.')
v2.alignment = WD_PARAGRAPH_ALIGNMENT.JUSTIFY
v2.style = doc.styles.add_style('v2', WD_STYLE_TYPE.PARAGRAPH)
f2 = v2.style.font
f2.name = 'Times New Roman'
f2.size = Pt(14)
v3 = doc.add_paragraph('')
v3.add_run('DEPONENT').bold = True
v3.alignment = WD_PARAGRAPH_ALIGNMENT.RIGHT
v3.style = doc.styles.add_style('v3', WD_STYLE_TYPE.PARAGRAPH)
f2 = v3.style.font
f2.name = 'Times New Roman'
f2.size = Pt(14)
savename = a_n+'_'+ad_no
doc.save(savename+'.docx')
os.system('start '+savename+'.docx')
root.destroy()
text2 = Label(root, text= "Enter the Name of the Applicant: \n Enter the Name of the Applicant's Father: \nEnter the address of the Applicant: \nEnter the Name of the Child: \nEnter the Date of Birth: \nEnter the name of the Mother: \nEnter the name of the Hospital: \nEnter the name of the Authority: \nEnter the Registration Number: \nNumber of the child: \nEnter the Aadhar number of Applicant: \nEnter the Mobile Number of the Applicant: ", bd =1, relief = 'sunken', justify = 'right', font = ('Times New Roman', 18))
text2.grid(row = 1, column = 0, rowspan=12)
e1 = Entry(root, width='50', font = ('Times New Roman', 14))
e1.grid(row =1, column = 1)
e2 = Entry(root, width='50', font = ('Times New Roman', 14))
e2.grid(row =2, column = 1)
e3 = Entry(root, width='50', font = ('Times New Roman', 14))
e3.grid(row =3, column = 1)
e4 = Entry(root, width='50', font = ('Times New Roman', 14))
e4.grid(row =4, column = 1)
e5 = Entry(root, width='50', font = ('Times New Roman', 14))
e5.grid(row =5, column = 1)
e6 = Entry(root, width='50', font = ('Times New Roman', 14))
e6.grid(row =6, column = 1)
e7 = Entry(root, width='50', font = ('Times New Roman', 14))
e7.grid(row =7, column = 1)
e8 = Entry(root, width='50', font = ('Times New Roman', 14))
e8.grid(row =8, column = 1)
e9 = Entry(root, width='50', font = ('Times New Roman', 14))
e9.grid(row =9, column = 1)
e10 = Entry(root, width='50', font = ('Times New Roman', 14))
e10.grid(row =10, column = 1)
e11 = Entry(root, width='50', font = ('Times New Roman', 14))
e11.grid(row =11, column = 1)
e12 = Entry(root, width='50', font = ('Times New Roman', 14))
e12.grid(row =12, column = 1)
b1 = Button(root, text = 'Click To Enter The Data', borderwidth=1)
b1.bind('<Button-1>', fillfields)
b1.grid(row = 13, column = 0)
b2 = Button(root, text = 'Click to Generate The Affidavit', state = DISABLED, borderwidth=1)
b2.bind('<Button-1>')
b2.grid(row = 13, column=1, columnspan=3)
root.mainloop()
#--------------------------------------------------------------------------------------------------------------------------------#
def click(cl):
global b11
if cl == 'Name Affidavit':
b11 = Button(main, text = 'Start Now', command = boyAff).grid(row = 4, column = 0, stick = W+E+N+S)
elif cl == 'Marriage File':
b11 = Button(main, text = 'Start Now', command = marriageFile).grid(row =4, column = 0, stick = W+E+N+S)
else:
b11 = Button(main, text = 'Start Now', state = DISABLED).grid(row = 4, column = 0, stick = W+E+N+S)
global clicked
clicked = StringVar()
clicked.set('Select A File Type:)')
lab1 = Label(main, text = 'DastaVej(दस्तावेज़)', font = ('Arial Rounded MT Bold', 22), relief = 'sunken', width = 30, padx = 20, pady = 10).grid(row = 0, column = 0, pady = 5)
lab2 = Label(main, text = '--Desgined by:- Abhay Aggarwal', font =('Times New Roman', 10), relief = 'sunken', justify = 'right', width = 30, borderwidth = 0).grid(row = 1, column = 0, stick = E)
drop = OptionMenu(main, clicked, "Name Affidavit", "Marriage File", "Domicile File", "Resident File", "Death File", "Delay Birth", "Delay Death")
drop.grid(row = 2, column = 0)
b = Button(main, text = 'Confirm Selection', command = lambda: click(clicked.get())).grid(row = 3, column = 0, stick = W+E+N+S)
b11 = Button(main, text = 'Start Now', state = DISABLED).grid(row = 4, column = 0, stick = W+E+N+S)
main.mainloop()
print('hello')
hello