def move_entry(from_list, from_set, to_list, to_set):
 (i, mac) = get(from_list)
 if (mac is None):
  return
 from_list.delete(i)
 to_list.insert(END, mac)
 mac = EthAddr(mac)
 to_set.add(mac)
 from_set.remove(mac)
 if clear_tables_on_change:
  core.callLater(clear_flows)

def move_entry ( from_list , from_set , to_list , to_set ) : ( i , mac ) = get ( from_list ) if ( mac is None ) : return from_list . delete ( i ) to_list . insert ( END , mac ) mac = EthAddr ( mac ) to_set . add ( mac ) from_set . remove ( mac ) if clear_tables_on_change : core . callLater ( clear_flows )
move entry from one list to another .