@@ -218,14 +218,16 @@ class Outputs:
218
218
selected_data = Output ("Selected Images" , Orange .data .Table )
219
219
data = Output ("Data" , Orange .data .Table )
220
220
221
- class Error (OWWidget .Error ):
221
+ class Warning (OWWidget .Warning ):
222
222
no_images_shown = Msg (
223
- "Unable to display images! Please ensure that the chosen "
224
- "Image Filename Attribute store the correct paths to the images."
223
+ "Unable to display images. Check that the chosen "
224
+ "Image Filename Attribute stores correct paths to images."
225
225
)
226
- no_image_attr = Msg (
227
- "Data does not contain any variables with image names.\n "
228
- "Numeric variables cannot store image names."
226
+
227
+ class Error (OWWidget .Error ):
228
+ no_image_attr = Msg (
229
+ "Data does not contain any variables with image file names or URLs.\n "
230
+ "Data contains no text variables."
229
231
)
230
232
231
233
settingsHandler = settings .DomainContextHandler ()
@@ -350,7 +352,7 @@ def _propose_image_and_title_attr(self):
350
352
351
353
def clear (self ):
352
354
self .data = None
353
- self .Error .no_images_shown .clear ()
355
+ self .Warning .no_images_shown .clear ()
354
356
self .Error .no_image_attr .clear ()
355
357
if self .__watcher is not None :
356
358
self .__watcher .finishedAt .disconnect (self .__on_load_finished )
@@ -364,7 +366,7 @@ def clear(self):
364
366
self .selected_items = set ()
365
367
366
368
def setupModel (self ):
367
- self .Error .no_images_shown .clear ()
369
+ self .Warning .no_images_shown .clear ()
368
370
if self .data is not None :
369
371
urls = column_data_as_qurl (self .data , self .image_attr )
370
372
titles = column_data_as_str (self .data , self .title_attr )
@@ -479,7 +481,7 @@ def commit(self):
479
481
def _updateStatus (self ):
480
482
count = len ([item for item in self .items if item .future is not None ])
481
483
if self ._errcount == count :
482
- self .Error .no_images_shown ()
484
+ self .Warning .no_images_shown ()
483
485
484
486
def onDeleteWidget (self ):
485
487
self .clear ()
0 commit comments