コード例 #1
0
ファイル: 76of79-2.py プロジェクト: JohnCDunn/Course-Work-TTA
 def updateHTML(self, event):
     # Get the updated values
     title = self.sTitleU.GetValue()
     body = self.sBodyU.GetValue()
     paragraph = self.sParagraphU.GetValue()
     footer = self.sFooterU.GetValue()
     
     # Get character ID
     htmlId = self.selectedId
     
     # Update the character
     db_program.updateHTML(htmlId, title, body, paragraph, footer)
     
     # Refresh list control
     self.fillListCtrl()
コード例 #2
0
    def updateHTML(self):
        # Get the updated values
        print ("update HTML")
        title = self.update_title.get()
        body = self.update_body.get()
        paragraph = self.update_paragraph.get()
        footer = self.update_footer.get()

        #get html ID
        ID = self.selectedId

        print ("ID + " + str(ID))

        # Update the HTML
        db_program.updateHTML(ID, title, body, paragraph, footer)

        # Refresh list control
        self.updateTreeView()
        messagebox.showinfo(title = 'Process HTML', message = 'HTML Updated!')