eric6/QScintilla/MarkupProviders/ImageMarkupDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
105 """ 105 """
106 enable = bool(self.imagePicker.text()) 106 enable = bool(self.imagePicker.text())
107 if self.__mode == ImageMarkupDialog.MarkDownMode: 107 if self.__mode == ImageMarkupDialog.MarkDownMode:
108 enable = enable and bool(self.altTextEdit.text()) 108 enable = enable and bool(self.altTextEdit.text())
109 109
110 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) 110 self.buttonBox.button(
111 QDialogButtonBox.StandardButton.Ok).setEnabled(enable)
111 112
112 @pyqtSlot(str) 113 @pyqtSlot(str)
113 def on_imagePicker_textChanged(self, address): 114 def on_imagePicker_textChanged(self, address):
114 """ 115 """
115 Private slot handling changes of the image path. 116 Private slot handling changes of the image path.

eric ide

mercurial