X-Git-Url: https://harishankar.org/repos/?p=biacv.git;a=blobdiff_plain;f=biacv_mainwindow.py;fp=biacv_mainwindow.py;h=72c6bc344455fdbbb8dadd9168cd77b381e40b82;hp=8e4eb5f7febb2c0d4677ae63869fe128d8e62138;hb=db696bd1b54b7daf56d6d3d3049e8a35394536aa;hpb=2bc518c09ac38090c6f5cf5fb3562231f2e99468 diff --git a/biacv_mainwindow.py b/biacv_mainwindow.py index 8e4eb5f..72c6bc3 100644 --- a/biacv_mainwindow.py +++ b/biacv_mainwindow.py @@ -93,6 +93,9 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): # set the personal information fields from document data self.set_personal_info (docdata) + # set the profile highlights + self.set_profile_highlights (docdata) + # set the educational qualifications self.set_educational_qualifications (docdata) @@ -182,6 +185,11 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): unicode (self.email.text ().toUtf8 (), "utf-8"), maritalstatus ) + + # set the profile highlights + profile_highlights = unicode (self.profile.toPlainText ().toUtf8 ()).splitlines () + docdata.set_profile (profile_highlights) + # get the list of educational qualifications from the treewidget education = [] i = 0 @@ -271,6 +279,15 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): self.email.setText ("") self.areacode.setText ("") self.unspecified.setChecked (True) + self.country.setText ("") + + # function to set the profile highlights in the GUI from document data + def set_profile_highlights (self, docdata): + self.profile.setPlainText (u'\n'.join (docdata.data["profile"])) + + # function to reset profile highlights data in GUI + def reset_profile_highlights (self): + self.profile.setPlainText ("") # function to set personal information data in the GUI from document data def set_personal_info (self, docdata): @@ -408,6 +425,7 @@ class Biacv_mainwindow (PyQt4.QtGui.QMainWindow, bui.Ui_biacv_mainwindow): self.title.setText ("") self.reset_personal_info () + self.reset_profile_highlights () self.reset_professional_history () self.reset_educational_qualifications () self.reset_career_objectives ()