Пример #1
0
    def save(self):
        """
        Update the frame with save status
        """
        if self.current_page is None:
            utils.warn_nothing_to_save()
            return

        pub.sendMessage('save_{}'.format(self.current_page.page_id))

        self.changed = False
Пример #2
0
    def save(self, location=None):
        """
        Update the frame with save status
        """
        if self.current_page.xml_root is None:
            utils.warn_nothing_to_save()
            return

        pub.sendMessage('save_{}'.format(self.current_page.page_id))

        self.changed = False
        msg = 'Last saved at {}'.format(
            time.strftime('%H:%M:%S', time.localtime()))
        self.status_bar.SetStatusText(msg)