2323from Orange .widgets .utils .annotated_data import add_columns
2424from Orange .widgets .utils .sql import check_sql_input
2525from Orange .widgets .utils .widgetpreview import WidgetPreview
26- from Orange .widgets .utils .state_summary import format_summary_details , \
27- format_multiple_summaries
2826from Orange .widgets .widget import Input , Output , Msg
2927
3028
@@ -145,9 +143,6 @@ def __init__(self):
145143 gui .comboBox (ibox , self , "source_column_role" , items = self .id_roles ,
146144 callback = self ._source_changed ))
147145
148- self .info .set_input_summary (self .info .NoInput )
149- self .info .set_output_summary (self .info .NoOutput )
150-
151146 ibox .layout ().addLayout (form )
152147 mleft , mtop , mright , _ = ibox .layout ().getContentsMargins ()
153148 ibox .layout ().setContentsMargins (mleft , mtop , mright , 4 )
@@ -170,25 +165,8 @@ def set_more_data(self, data=None, sig_id=None):
170165 elif sig_id in self .more_data :
171166 del self .more_data [sig_id ]
172167
173- def _set_input_summary (self ):
174- more_data = list (self .more_data .values ()) if self .more_data else [None ]
175- n_primary = len (self .primary_data ) if self .primary_data else 0
176- n_more_data = [len (data ) if data else 0 for data in more_data ]
177-
178- summary , details , kwargs = self .info .NoInput , "" , {}
179- if self .primary_data or self .more_data :
180- summary = f"{ self .info .format_number (n_primary )} , " \
181- + ", " .join (self .info .format_number (i ) for i in n_more_data )
182- details = format_multiple_summaries (
183- [("Primary data" , self .primary_data )]
184- + [("" , data ) for data in more_data ]
185- )
186- kwargs = {"format" : Qt .RichText }
187- self .info .set_input_summary (summary , details , ** kwargs )
188-
189168 def handleNewSignals (self ):
190169 self .mergebox .setDisabled (self .primary_data is not None )
191- self ._set_input_summary ()
192170 if self .incompatible_types ():
193171 self .Error .bow_concatenation ()
194172 else :
@@ -242,10 +220,8 @@ def apply(self):
242220 source_ids = np .array (list (flatten (
243221 [i ] * len (table ) for i , table in enumerate (tables )))).reshape ((- 1 , 1 ))
244222 data [:, source_var ] = source_ids
245- self .info .set_output_summary (len (data ), format_summary_details (data ))
246223 else :
247224 data = None
248- self .info .set_output_summary (self .info .NoOutput )
249225
250226 self .Outputs .data .send (data )
251227
0 commit comments