Exemple #1
0
    def onsave(diag):
        status = diag.StatusMessageFromInfo()
        if diag.SaveForLater:
            # only save if the checkbox is checked
            profile.add_status_message(status)

        import hooks; hooks.notify('digsby.statistics.ui.select_status')
        profile.set_status(status)
Exemple #2
0
 def add_status_message(self):
     StatusDialog.new(self, save_callback = lambda diag: profile.add_status_message(**diag.info()))