Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
aa85ed28
Commit
aa85ed28
authored
Jun 07, 2013
by
Luke Campagnola
Browse files
fixed QString -> str conversions in flowchart
parent
f5435b77
Changes
1
Show whitespace changes
Inline
Side-by-side
pyqtgraph/flowchart/Flowchart.py
View file @
aa85ed28
...
...
@@ -560,6 +560,7 @@ class Flowchart(Node):
self
.
fileDialog
.
fileSelected
.
connect
(
self
.
saveFile
)
return
#fileName = QtGui.QFileDialog.getSaveFileName(None, "Save Flowchart..", startDir, "Flowchart (*.fc)")
fileName
=
str
(
fileName
)
configfile
.
writeConfigFile
(
self
.
saveState
(),
fileName
)
self
.
sigFileSaved
.
emit
(
fileName
)
...
...
@@ -681,7 +682,7 @@ class FlowchartCtrlWidget(QtGui.QWidget):
#self.setCurrentFile(newFile)
def
fileSaved
(
self
,
fileName
):
self
.
setCurrentFile
(
fileName
)
self
.
setCurrentFile
(
str
(
fileName
)
)
self
.
ui
.
saveBtn
.
success
(
"Saved."
)
def
saveClicked
(
self
):
...
...
@@ -710,7 +711,7 @@ class FlowchartCtrlWidget(QtGui.QWidget):
#self.setCurrentFile(newFile)
def
setCurrentFile
(
self
,
fileName
):
self
.
currentFileName
=
fileName
self
.
currentFileName
=
str
(
fileName
)
if
fileName
is
None
:
self
.
ui
.
fileNameLabel
.
setText
(
"<b>[ new ]</b>"
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment