diff --git a/gui/filemgmt.tcl b/gui/filemgmt.tcl index 2cf30cbf..098930f3 100755 --- a/gui/filemgmt.tcl +++ b/gui/filemgmt.tcl @@ -227,6 +227,11 @@ proc saveFile { selectedFile } { set fileName [file tail $currentFile] if { [file extension $selectedFile] == ".xml" } { xmlFileLoadSave save $selectedFile + } elseif { [file extension $selectedFile] == ".py" } { + set msg "Python script files cannot be saved by the GUI." + set msg "$msg\nUse File > Export Python script... for export." + tk_messageBox -type ok -icon warning -message $msg -title "Error" + } else { set fileId [open $currentFile w] dumpCfg file $fileId