Show More
@@ -21,6 +21,9 b' def save_svg(string, parent=None):' | |||||
21 | The name of the file to which the document was saved, or None if the save |
|
21 | The name of the file to which the document was saved, or None if the save | |
22 | was cancelled. |
|
22 | was cancelled. | |
23 | """ |
|
23 | """ | |
|
24 | if isinstance(string, unicode): | |||
|
25 | string = string.encode('utf-8') | |||
|
26 | ||||
24 | dialog = QtGui.QFileDialog(parent, 'Save SVG Document') |
|
27 | dialog = QtGui.QFileDialog(parent, 'Save SVG Document') | |
25 | dialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) |
|
28 | dialog.setAcceptMode(QtGui.QFileDialog.AcceptSave) | |
26 | dialog.setDefaultSuffix('svg') |
|
29 | dialog.setDefaultSuffix('svg') |
General Comments 0
You need to be logged in to leave comments.
Login now