src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 9573
9960d19d66b5
parent 9496
05017f795c24
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9572:3b46c662a004 9573:9960d19d66b5
1164 if not script: 1164 if not script:
1165 EricMessageBox.critical( 1165 EricMessageBox.critical(
1166 self, 1166 self,
1167 self.tr("Run Script"), 1167 self.tr("Run Script"),
1168 self.tr( 1168 self.tr(
1169 """The current editor does not contain a script.""" """ Abort...""" 1169 """The current editor does not contain a script. Abort..."""
1170 ), 1170 ),
1171 ) 1171 )
1172 return 1172 return
1173 1173
1174 ok, reason = self.__device.canRunScript() 1174 ok, reason = self.__device.canRunScript()
1175 if not ok: 1175 if not ok:
1176 EricMessageBox.warning( 1176 EricMessageBox.warning(
1177 self, 1177 self,
1178 self.tr("Run Script"), 1178 self.tr("Run Script"),
1179 self.tr( 1179 self.tr(
1180 """<p>Cannot run script.</p><p>Reason:""" """ {0}</p>""" 1180 """<p>Cannot run script.</p><p>Reason: {0}</p>"""
1181 ).format(reason), 1181 ).format(reason),
1182 ) 1182 )
1183 return 1183 return
1184 1184
1185 if not self.replButton.isChecked(): 1185 if not self.replButton.isChecked():
1759 if not os.path.exists(pythonFile): 1759 if not os.path.exists(pythonFile):
1760 EricMessageBox.critical( 1760 EricMessageBox.critical(
1761 self, 1761 self,
1762 title, 1762 title,
1763 self.tr( 1763 self.tr(
1764 """The Python file <b>{0}</b> does not exist.""" """ Aborting...""" 1764 """The Python file <b>{0}</b> does not exist. Aborting..."""
1765 ).format(pythonFile), 1765 ).format(pythonFile),
1766 ) 1766 )
1767 return 1767 return
1768 1768
1769 compileArgs = [ 1769 compileArgs = [

eric ide

mercurial