Beispiel #1
0
    def _saveAs(self):
        """Calls saveAs no matter what."""
        filename = filesys.saveAs(self._workingPack, self._tileMap,
            self._extras)
        if filename:
            self._currentFile = str(filename)

        self.setWindowTitle(self._windowTitleBase + ' on ' + self._currentFile)
Beispiel #2
0
    def _save(self):
        """If user working on existing file, saves over it.

        Otherwise, a file dialog is brought up.

        """
        if self._currentFile == '':
            filename = filesys.saveAs(self._workingPack, self._tileMap,
                self._extras)
            if filename:
                self._currentFile = str(filename)
        else:
            filename = filesys.save(self._workingPack, self._tileMap,
                self._extras, self._currentFile)
            if filename:
                self._currentFile = str(filename)

        self.setWindowTitle(self._windowTitleBase + ' on ' + self._currentFile)